Browse Source

校车预约管理系统 黑名单管理月度报表导出报错问题解决

hzj18279462576@163.com 1 year atrás
parent
commit
a5c16c0951
4 changed files with 19 additions and 19 deletions
  1. 2 2
      src/router/index.js
  2. 2 2
      src/store/modules/user.js
  3. 2 2
      src/views/blacklist/blacklist.vue
  4. 13 13
      vite.config.js

+ 2 - 2
src/router/index.js

@@ -5,8 +5,8 @@ import {
 } from "vue-router";
 import Layout from "@/layout/index.vue";
 const router = createRouter({
-  // history: createWebHashHistory("/carstop/dist6"), // 线上地址
-  history: createWebHashHistory("/testingServertomcat/dist6"), // 测试环境发布地址
+  history: createWebHashHistory("/carstop/dist6"), // 线上地址
+  // history: createWebHashHistory("/testingServertomcat/dist6"), // 测试环境发布地址
   routes: [
     {
       path: "/login",

+ 2 - 2
src/store/modules/user.js

@@ -8,8 +8,8 @@ const state = {
   activeIndex: 0,
   username: "",
   password: "",
-  // api: "/carstop/carbook", // 线上
-  api: "/testingServertomcat/carbook", // 测试
+  api: "/carstop/carbook", // 线上
+  // api: "/testingServertomcat/carbook", // 测试
   newsNum: "",
 };
 

+ 2 - 2
src/views/blacklist/blacklist.vue

@@ -1067,8 +1067,8 @@ const importExcel = async () => {
   });
   if (res.data.code == 200) {
     console.log(res, "导出账号");
-    // var downloadPath = "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl;
-    var downloadPath = "https://chtech.ncjti.edu.cn/testingServertomcat" + res.data.downurl;
+    var downloadPath = "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl;
+    // var downloadPath = "https://chtech.ncjti.edu.cn/testingServertomcat" + res.data.downurl;
     console.log("获得地址数据:", downloadPath);
     var downloadLink = document.createElement("a");
     downloadLink.style.display = "none"; // 使其隐藏

+ 13 - 13
vite.config.js

@@ -23,23 +23,23 @@ export default defineConfig({
     // 是否开启 https
     // https: false,
     // 线上地址
-    // proxy: {
-    //   "/carstop/carbook": {
-    //     target: "https://chtech.ncjti.edu.cn/carstop/carbook",
-    //     changeOrigin: true,
-    //     rewrite: (path) => path.replace(/^\/carstop\/carbook/, ""),
-    //   },
-    // },
-
-    // 测试地址
     proxy: {
-      "/testingServertomcat/carbook": {
-        target: "https://chtech.ncjti.edu.cn/testingServertomcat/carbook", // 测试环境
-        // target: "https://jtishfw.ncjti.edu.cn/jxch-smartmp/carbook", // 测试环境
+      "/carstop/carbook": {
+        target: "https://chtech.ncjti.edu.cn/carstop/carbook",
         changeOrigin: true,
-        rewrite: (path) => path.replace(/^\/testingServertomcat\/carbook/, ""),
+        rewrite: (path) => path.replace(/^\/carstop\/carbook/, ""),
       },
     },
+
+    // 测试地址
+    // proxy: {
+    //   "/testingServertomcat/carbook": {
+    //     target: "https://chtech.ncjti.edu.cn/testingServertomcat/carbook", // 测试环境
+    //     // target: "https://jtishfw.ncjti.edu.cn/jxch-smartmp/carbook", // 测试环境
+    //     changeOrigin: true,
+    //     rewrite: (path) => path.replace(/^\/testingServertomcat\/carbook/, ""),
+    //   },
+    // },
   },
   publicDir: "public",
   base: "./",