Commit 1d189b97 authored by 罗新东's avatar 罗新东

修复了部分bug

parent 4d68bbb1
......@@ -13,7 +13,8 @@
<header class="header">
<van-icon @click="to" name="arrow-left" class="iconColorLeft"/>
<span>{{text}}</span>
<van-icon name="bars" class="iconColorRight"/>
<!-- 为止有什么用图标注释 -->
<!-- <van-icon name="bars" class="iconColorRight"/> -->
</header>
</div>
</template>
......
......@@ -12,7 +12,7 @@ router.beforeEach(async(to, from, next) => {
const hasToken = getToken()//确定用户是否已登录
if (hasToken) {
if (to.path === '/login2') {
next({ path: '/message-center' })
next({ path: '/save-workbench' })
} else {
next()
}
......
......@@ -85,7 +85,7 @@ export default {
setUserInfo(userInfo)
})
setToken(Response.data)
this.$router.push('/message-center')
this.$router.push('/save-workbench')
}else if(Response.code==301){
this.$toast.clear()
this.$toast.fail({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment