init: 初始化

This commit is contained in:
沈昭朝 2024-07-18 17:25:42 +08:00
parent 7ef046949b
commit d6f85f33f0
3 changed files with 5 additions and 4 deletions

View File

@ -39,8 +39,9 @@ router.beforeEach(async(to, from, next) => {
// remove token and go to login page to re-login
await store.dispatch('user/resetToken')
Message.error(error || 'Has Error')
next(`/login?redirect=${to.path}`)
NProgress.done()
// next(`/login?redirect=${to.path}`)
// NProgress.done()
window.location.href = ''
}
}
}

View File

@ -87,7 +87,7 @@ export const asyncRoutes = [
path: 'record',
name: 'Record',
component: () => import('@/views/record'),
meta: { title: '工程师状态', icon: 'el-icon-s-custom' }
meta: { title: '工程师派工', icon: 'el-icon-s-custom' }
}]
},
{

View File

@ -295,7 +295,7 @@
</el-table-column>
<!-- month end -->
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<el-table-column label="派工" align="center" fixed="right">
<template slot-scope="{ row, $index }">
<!-- 测试 -->
<el-button