fix: 优化入口文件中的beforeRender的错误日志

This commit is contained in:
万纯 2021-03-03 15:10:35 +08:00
parent 2294202cf3
commit c82e562628
2 changed files with 16 additions and 2 deletions

View File

@ -81,7 +81,8 @@ const beforeRender = async () => {
try {
initialState = await beforeRenderConfig.action();
} catch(e){
console.error(`[fes] beforeRender执行出现异常`)
console.error(`[fes] beforeRender执行出现异常`);
console.error(e);
}
app.unmount();
}

View File

@ -24,7 +24,20 @@ export default {
'changeOrigin': true,
},
},
layout: false,
layout: {
title: "Fes.js",
footer: 'Created by MumbelFe',
multiTabs: false,
menus: [{
name: 'index'
}, {
name: 'onepiece'
}, {
name: 'store'
}, {
name: 'simpleList'
}]
},
locale: {
legacy: true
},