init: 初始化
This commit is contained in:
parent
7ef046949b
commit
d6f85f33f0
|
@ -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 = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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' }
|
||||
}]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue