Переглянути джерело

refactor(frontend): 更新版本信息接口路径

- 在 Home 和 OTA 视图中,更新了版本信息接口路径
- 从 'https://ossimg.valimart.net/frontend/html/zhihuiyin/version.json'
- 修改为 'https://ossimg.valimart.net/frontend/html/zhihuiyin/yi/version.json'
- 添加时间戳参数以避免缓存问题
panqiuyao 3 місяців тому
батько
коміт
de3650c60a

+ 1 - 1
frontend/src/views/Home/index.vue

@@ -149,7 +149,7 @@ const checkForUpdates = async () => {
   try {
     // 添加时间戳避免缓存问题
     const timestamp = new Date().getTime();
-    const response = await axios.get('https://ossimg.valimart.net/frontend/html/zhihuiyin/version.json', {
+    const response = await axios.get('https://ossimg.valimart.net/frontend/html/zhihuiyin/yi/version.json', {
       params: {
         _t: timestamp
       }

+ 1 - 1
frontend/src/views/OTA/index.vue

@@ -30,7 +30,7 @@ const fetchVersions = async () => {
   try {
     // 添加时间戳避免缓存问题
     const timestamp = new Date().getTime();
-    const response = await axios.get('https://ossimg.valimart.net/frontend/html/zhihuiyin/version.json', {
+    const response = await axios.get('https://ossimg.valimart.net/frontend/html/zhihuiyin/yi/version.json', {
       params: {
         _t: timestamp
       }