Jelajahi Sumber

api中/zhylsia去掉

“hanlingqiang 1 tahun lalu
induk
melakukan
0c7dc5260e
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      src/api/home.ts
  2. 1 1
      vite.config.ts

+ 1 - 1
src/api/home.ts

@@ -5,7 +5,7 @@ enum Api {
   deviceList = '/home/device', //设备
   deviceCategory = '/home/deviceCategory', //设备数量统计
   deviceStates = '/home/deviceStates', //设备状态统计
-  customerApi = '/zhylsia/userApi.action',
+  customerApi = '/userApi.action',
 }
 
 // 获取品类

+ 1 - 1
vite.config.ts

@@ -35,7 +35,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
           target: 'https://web.poteviohealth.com',
           changeOrigin: true,
           secure: false, //http跨域
-          rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_HEALTH_API), ''),
+          rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_HEALTH_API), '/zhylsia'),
         },
       },
     },