刘翔宇-旅管家 3 years ago
parent d20e5ef139
commit 0e97acbc74

@ -2,5 +2,5 @@
ENV = 'production' ENV = 'production'
# base api # base api
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = ''

@ -66,8 +66,8 @@ export function generaMenu(routes, data) {
} else { } else {
const menu = { const menu = {
path: item.url === '#' ? item.id + '_key' : item.url, path: (item.path === '#'||item.path == '' ? item.id + '_key' : item.path),
component: item.path === '#' ? Layout : loadView(item.path), component: (item.path === '#'||item.path == '' ? Layout : loadView(item.path)),
// hidden: true, // hidden: true,
children: [], children: [],
name: 'menu_' + item.id, name: 'menu_' + item.id,

@ -24,8 +24,8 @@ module.exports = {
* In most cases please use '/' !!! * In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: '/', publicPath: '/admin/',
outputDir: 'dist', outputDir: '/Users/liuxiangyu/Work/yunyubang/yunyubang-service/public/admin',
assetsDir: 'static', assetsDir: 'static',
css: { css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项 loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save