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 传递选项