- 在 loadPackages 函数中,将 fetch("index.json") 修改为 fetch("/index.json") - 这个改动确保了正确请求根目录下的 index.json 文件,避免了可能的路径错误导致的加载失败
@@ -123,7 +123,7 @@
// 加载已安装的应用包列表
async function loadPackages() {
try {
- const response = await fetch("index.json");
+ const response = await fetch("/index.json");
const data = await response.json();
return data.packages || [];
} catch (error) {