Browse Source

fix: 移除初始接口调用

feature-v1.0.0
ruancuihong 1 month ago
parent
commit
5805f9be4e
  1. 4
      src/views/Main/DailyPatrolCard/index.vue
  2. 4
      vite.config.ts

4
src/views/Main/DailyPatrolCard/index.vue

@ -249,8 +249,8 @@ watch(
}
);
onMounted(() => {
getChartData(props.timeRange);
getProgressData(props.timeRange);
// getChartData(props.timeRange);
// getProgressData(props.timeRange);
window.addEventListener('resize', handleResize);
});

4
vite.config.ts

@ -85,8 +85,8 @@ export default defineConfig(({ mode }) => {
rewrite: (path) => path.replace(/^\/api\/iserver/, "/iserver"),
},
"/api/run": {
// target: "http://shuili.product.dev.com:30115/",
target: "http://172.16.34.80:18082",
target: "http://shuili.product.dev.com:30115/",
// target: "http://172.16.34.80:18082",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, "/tianhui-admin-web"),
},

Loading…
Cancel
Save