Commit ebefcde7 authored by 罗新东's avatar 罗新东

提交了tabbar默认定位位置

parent abe6a7d8
Pipeline #7456 passed with stage
in 10 seconds
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
export default { export default {
data() { data() {
return { return {
active: 0, active: 1,
tabBarList: [ tabBarList: [
{ {
key: "1", key: "1",
......
...@@ -12,7 +12,7 @@ router.beforeEach(async(to, from, next) => { ...@@ -12,7 +12,7 @@ router.beforeEach(async(to, from, next) => {
const hasToken = getToken()//确定用户是否已登录 const hasToken = getToken()//确定用户是否已登录
if (hasToken) { if (hasToken) {
if (to.path === '/login2') { if (to.path === '/login2') {
next({ path: '/message-center' }) next({ path: '/save-workbench' })
} else { } else {
next() next()
} }
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
setUserInfo(userInfo) setUserInfo(userInfo)
}) })
setToken(Response.data) setToken(Response.data)
this.$router.push('/message-center') this.$router.push('/save-workbench')
}else if(Response.code==301){ }else if(Response.code==301){
this.$toast.clear() this.$toast.clear()
this.$toast.fail({ 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