Skip to content

master构建失败 #13

Description

@luomoxu
 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! yearning@0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions