Explorar o código

【修复】index.json 文件的请求路径

- 将请求路径从 "/index.json" 修改为 "../../../index.json"
PJ568 hai 1 ano
pai
achega
5934280a95
Modificáronse 2 ficheiros con 6 adicións e 6 borrados
  1. 1 1
      index.html
  2. 5 5
      metadata.json

+ 1 - 1
index.html

@@ -169,7 +169,7 @@
       // 从index.json加载应用数据
       async function loadApps() {
         try {
-          const response = await fetch("/index.json");
+          const response = await fetch("../../../index.json");
           const data = await response.json();
 
           // 转换数据格式并添加拼音

+ 5 - 5
metadata.json

@@ -1,7 +1,7 @@
 {
   "name": "PageOS 应用启动器",
   "id": "pageos-app-launcher",
-  "version": "0.1.0",
+  "version": "0.1.1",
   "description": "PageOS 应用启动器",
   "icon": "assets/icon.svg",
   "author": "PJ568",
@@ -10,9 +10,9 @@
   "permissions": [],
   "entry": "index.html",
   "all_files": {
-    "lib/pinyinjs/pinyin_dict_withtone.js": "e822cf20885ae7d6adcb35a3cbd94c3372e8dc6dbf04b1407f240c8c8da7d437",
     "assets/icon.svg": "4a60a778bbbcc370e9f593d2260d3bac003750f5ba73d9a33f2b31303687f7b5",
-    "lib/pinyinjs/pinyinUtil.js": "8b71ceebda777d1cc7b1afdcc9096f59676ce0fbe151d21db06f35d7e2ad7986",
-    "index.html": "77d771b851889431cddd520aff6f67cbeae59efbc01cbc9c025c3029df1250e1"
+    "lib/pinyinjs/pinyin_dict_withtone.js": "e822cf20885ae7d6adcb35a3cbd94c3372e8dc6dbf04b1407f240c8c8da7d437",
+    "index.html": "b453fbb4c9460d9ca687bd24404128ae48f09a1d80a06e7558f50fe3f6f8e96f",
+    "lib/pinyinjs/pinyinUtil.js": "8b71ceebda777d1cc7b1afdcc9096f59676ce0fbe151d21db06f35d7e2ad7986"
   }
-}
+}