MS-CIAZDCOIXVRW\Administrator před 3 roky
rodič
revize
c0218860ea
2 změnil soubory, kde provedl 10 přidání a 10 odebrání
  1. 7 7
      src/components/Home/index.vue
  2. 3 3
      vue.config.js

+ 7 - 7
src/components/Home/index.vue

@@ -491,7 +491,7 @@ export default {
       };
       // console.log(data);
       let res = await this.$axios({
-        url: "/attendance/campus/saveOrUpdateCampusTime",
+        url: "/analysis/attendance/campus/saveOrUpdateCampusTime",
         method: "post",
         data,
       });
@@ -543,7 +543,7 @@ export default {
         campus: this.activeName,
       };
       let res = await this.$axios({
-        url: "/attendance/campus/queryCampusTime",
+        url: "/analysis/attendance/campus/queryCampusTime",
         method: "get",
         params,
       });
@@ -560,7 +560,7 @@ export default {
         campus: this.activeName,
       };
       let res = await this.$axios({
-        url: "/attendance/late/queryLateClock",
+        url: "/analysis/attendance/late/queryLateClock",
         method: "get",
         params,
       });
@@ -604,7 +604,7 @@ export default {
           },
         };
         let res = await this.$axios.post(
-          "/attendance/month/importExcel",
+          "/analysis/attendance/month/importExcel",
           formData,
           config
         );
@@ -640,7 +640,7 @@ export default {
         }, 1000);
         // 开始解析时的处理
         let res = await this.$axios({
-          url: "/attendance/month/downLoad",
+          url: "/analysis/attendance/month/downLoad",
           method: "get",
         });
         // console.log(res);
@@ -692,7 +692,7 @@ export default {
         });
 
         let res = await this.$axios({
-          url: "/attendance/month/title",
+          url: "/analysis/attendance/month/title",
           method: "get",
         });
         // console.log(res);
@@ -760,7 +760,7 @@ export default {
         });
 
         let res = await this.$axios({
-          url: "/attendance/month/title",
+          url: "/analysis/attendance/month/title",
           method: "get",
         });
         // console.log(res);

+ 3 - 3
vue.config.js

@@ -3,13 +3,13 @@ module.exports = defineConfig({
   transpileDependencies: true,
   lintOnSave: false,
   assetsDir: 'static',
-  publicPath: '/attendanceH5/',
+  publicPath: '/analysis/attendanceH5/',
   devServer: {
     // 跨域配置
     proxy: {
-      '/attendance': {
+      '/analysis': {
         // 线上地址
-        target: 'https://chtech.ncjti.edu.cn/analysis',
+        target: 'https://chtech.ncjti.edu.cn',
         // 本地开发地址
         // target: 'http://192.168.161.34:8087',
         changeOrigin: true,