Yearning-gemini
Yearning-gemini copied to clipboard
master构建失败
ERROR Failed to compile with 1 error
error in /data/wwwroot/Yearning-gemini/src/main.ts
ERROR in /data/wwwroot/Yearning-gemini/src/main.ts(41,18):
41:18 Object is possibly 'undefined'.
39 | router.beforeEach((to, from, next) => {
40 | LoadingBar.start();
> 41 | config.title(to.meta.title);
| ^
42 | if (sessionStorage.getItem('locking') === '1' && to.name !== 'locking') { // 判断当前是否是锁定状态
43 | next(false);
44 | router.replace({name: 'login'}).then(() => {
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `vue-cli-service build`
npm ERR! Exit status 1
/data/wwwroot/Yearning-gemini/src/main.ts 39行改下
router.beforeEach((to: any, from, next)
/data/wwwroot/Yearning-gemini/src/main.ts 39行改下
router.beforeEach((to: any, from, next)
这是什么原理?