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
|
// remove token and go to login page to re-login
|
||||||
await store.dispatch('user/resetToken')
|
await store.dispatch('user/resetToken')
|
||||||
Message.error(error || 'Has Error')
|
Message.error(error || 'Has Error')
|
||||||
next(`/login?redirect=${to.path}`)
|
// next(`/login?redirect=${to.path}`)
|
||||||
NProgress.done()
|
// NProgress.done()
|
||||||
|
window.location.href = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ export const asyncRoutes = [
|
||||||
path: 'record',
|
path: 'record',
|
||||||
name: 'Record',
|
name: 'Record',
|
||||||
component: () => import('@/views/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>
|
</el-table-column>
|
||||||
<!-- month end -->
|
<!-- month end -->
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" fixed="right">
|
<el-table-column label="派工" align="center" fixed="right">
|
||||||
<template slot-scope="{ row, $index }">
|
<template slot-scope="{ row, $index }">
|
||||||
<!-- 测试 -->
|
<!-- 测试 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
|
Loading…
Reference in New Issue