From 0e97acbc7406db8b124b770534d5e0b7e44fe8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Thu, 4 Aug 2022 10:42:45 +0800 Subject: [PATCH] up --- .env.production | 2 +- src/store/modules/permission.js | 4 ++-- vue.config.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.production b/.env.production index 80c8103..8994f69 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '' diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 921250b..3efa001 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -66,8 +66,8 @@ export function generaMenu(routes, data) { } else { const menu = { - path: item.url === '#' ? item.id + '_key' : item.url, - component: item.path === '#' ? Layout : loadView(item.path), + path: (item.path === '#'||item.path == '' ? item.id + '_key' : item.path), + component: (item.path === '#'||item.path == '' ? Layout : loadView(item.path)), // hidden: true, children: [], name: 'menu_' + item.id, diff --git a/vue.config.js b/vue.config.js index 2874ec4..a7effb9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -24,8 +24,8 @@ module.exports = { * In most cases please use '/' !!! * Detail: https://cli.vuejs.org/config/#publicpath */ - publicPath: '/', - outputDir: 'dist', + publicPath: '/admin/', + outputDir: '/Users/liuxiangyu/Work/yunyubang/yunyubang-service/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项