From e164a069560adf511b84e85a4d59ebb6dce5d48d Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Thu, 20 Apr 2023 13:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- src/assets/img/guoqi@2x.png | Bin 0 -> 25404 bytes src/axios/api/index.js | 39 +++-- src/axios/request/http.js | 6 +- src/pages/feedback.vue | 217 +++++++++++++++++++++++++ src/pages/peopleList.vue | 210 ------------------------ src/pages/videoList.vue | 312 ------------------------------------ src/pages/videoShow.vue | 134 ---------------- src/router/index.js | 22 +-- vue.config.js | 28 ++-- 10 files changed, 260 insertions(+), 710 deletions(-) create mode 100644 src/assets/img/guoqi@2x.png create mode 100644 src/pages/feedback.vue delete mode 100644 src/pages/peopleList.vue delete mode 100644 src/pages/videoList.vue delete mode 100644 src/pages/videoShow.vue diff --git a/public/index.html b/public/index.html index 569058a..9b34aa9 100644 --- a/public/index.html +++ b/public/index.html @@ -18,7 +18,7 @@ - 视频诊断 + 随访反馈 + diff --git a/src/pages/peopleList.vue b/src/pages/peopleList.vue deleted file mode 100644 index f97c755..0000000 --- a/src/pages/peopleList.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - diff --git a/src/pages/videoList.vue b/src/pages/videoList.vue deleted file mode 100644 index faef8a8..0000000 --- a/src/pages/videoList.vue +++ /dev/null @@ -1,312 +0,0 @@ - - - \ No newline at end of file diff --git a/src/pages/videoShow.vue b/src/pages/videoShow.vue deleted file mode 100644 index 3caade0..0000000 --- a/src/pages/videoShow.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index b1d3eb3..6bd182e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,7 +5,7 @@ Vue.use(Router); const page = [ { path: "/", - redirect: "/login" //调试 + redirect: "/feedback" //调试 }, { path: "/login", @@ -14,22 +14,10 @@ const page = [ component: () => import("@/pages/login") }, { - path: "/peopleList", - meta: { index: 2, keepAlive: true, scrollTop: 0 }, - name: "peopleList", - component: () => import("@/pages/peopleList") - }, - { - path: "/videoList", - meta: { index: 3, keepAlive: true, scrollTop: 0 }, - name: "videoList", - component: () => import("@/pages/videoList") - }, - { - path: "/videoShow", - meta: { index: 3, keepAlive: false }, - name: "videoShow", - component: () => import("@/pages/videoShow") + path: "/feedback", + meta: { index: 2, keepAlive: false }, + name: "feedback", + component: () => import("@/pages/feedback") } ]; diff --git a/vue.config.js b/vue.config.js index 5b836ad..c670070 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,4 @@ -const path = require("path"); +const path = require("path") module.exports = { publicPath: "", @@ -7,10 +7,10 @@ module.exports = { configureWebpack: (config) => { require("@vux/loader").merge(config, { plugins: ["vux-ui"] - }); + }) }, chainWebpack: (config) => { - config.resolve.alias.set("@", path.join(__dirname, "src")); + config.resolve.alias.set("@", path.join(__dirname, "src")) // config.resolve.alias.set( // "vue$", // path.join(__dirname, "vue/dist/vue.esm.js") @@ -57,17 +57,21 @@ module.exports = { } }, devServer: { + disableHostCheck: true, //内网穿透 host: "0.0.0.0", - port: "8080", - open: true, // 自动拉起浏览器 - hot: true, // 热加载 + port: 8080, + https: false, // https:{type:Boolean} + open: true, proxy: { - // change xxx-api/login => mock/login - // detail: https://cli.vuejs.org/config/#devserver-proxy - "/": { - target: "http://10.130.2.64:8201", - changeOrigin: true + "/api": { + target: "https://ds.cixincloud.com/songjiang-api", + // target: 'http://localhost:8201/', + // target: 'http://192.168.3.221/8201/', + changeOrigin: true, + pathRewrite: { + "^/api": "" + } } } } -}; +} -- 2.22.0