From 1c48e399e4f0e11b1d3f522d440ce153579d5b76 Mon Sep 17 00:00:00 2001 From: chengkun <2500338766@qq.com> Date: Wed, 11 May 2022 16:57:07 +0800 Subject: [PATCH] =?UTF-8?q?1.0.0:=E4=BF=AE=E6=94=B9=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.staging | 2 +- src/router/index.js | 65 --------------------------------------------- vue.config.js | 2 +- 4 files changed, 3 insertions(+), 68 deletions(-) diff --git a/.env.development b/.env.development index d8e9d72..a46151f 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ VUE_APP_TITLE = bnyer管理系统 # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 +# bnyer管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' # 路由懒加载 diff --git a/.env.staging b/.env.staging index 8a8b5d8..4e1eb0b 100644 --- a/.env.staging +++ b/.env.staging @@ -6,5 +6,5 @@ NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 若依管理系统/测试环境 +# bnyer管理系统/测试环境 VUE_APP_BASE_API = '/stage-api' diff --git a/src/router/index.js b/src/router/index.js index 6d40e63..5cf8aa9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -74,71 +74,6 @@ export const constantRoutes = [ } ] }, - { - path: '/feedback', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/img/feedback'), - name: 'Feedback', - meta: { title: '反馈信息', icon: 'dashboard', affix: true } - } - ] - }, - { - path: '/type', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/img/type'), - name: 'Type', - meta: { title: '图片类型', icon: 'dashboard', affix: true } - } - ] - }, - { - path: '/banner', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/img/banner'), - name: 'Banner', - meta: { title: 'banner', icon: 'dashboard', affix: true } - } - ] - }, - { - path: '/tiktokUser', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/img/tiktokUser'), - name: 'TiktokUser', - meta: { title: 'tiktokUser', icon: 'dashboard', affix: true } - } - ] - }, - { - path: '/tiktokImg', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/img/tiktokImg'), - name: 'TiktokImg', - meta: { title: 'tiktokImg', icon: 'dashboard', affix: true } - } - ] - }, { path: '/user', component: Layout, diff --git a/vue.config.js b/vue.config.js index 3d50f77..0eb3084 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:7010`, + target: `http://localhost:7010`, //http://localhost:7010 changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''