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