浏览代码

chore(api): update protocol url path with wry 0.12.1 on Windows (#2409)

Ngo Iok Ui (Wu Yu Wei) 4 年之前
父节点
当前提交
88382fe147
共有 3 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      .changes/windows-protocol-path.md
  2. 0 0
      core/tauri/scripts/bundle.js
  3. 1 1
      tooling/api/src/tauri.ts

+ 5 - 0
.changes/windows-protocol-path.md

@@ -0,0 +1,5 @@
+---
+"api": patch
+---
+
+Update protocol url path with wry 0.12.1 on Windows.

文件差异内容过多而无法显示
+ 0 - 0
core/tauri/scripts/bundle.js


+ 1 - 1
tooling/api/src/tauri.ts

@@ -101,7 +101,7 @@ async function invoke<T>(cmd: string, args: InvokeArgs = {}): Promise<T> {
  */
 function convertFileSrc(filePath: string): string {
   return navigator.userAgent.includes('Windows')
-    ? `https://custom.protocol.asset_${filePath}`
+    ? `https://asset.${filePath}`
     : `asset://${filePath}`
 }
 

部分文件因为文件数量过多而无法显示