@@ -28,7 +28,6 @@ const store = new Vuex.Store({
mutations: {
update(state, [key, value]) {
state[key] = value;
- router.push('/projectApplication');
},
})
@@ -9,7 +9,8 @@ function userLogin(){
id:getToken(),
}).then(res=>{
if(res['data']!="ERROR"){
- store.commit('update',['userInfo',res['data']])
+ store.commit('update',['userInfo',res['data']]);
+ router.push('/projectApplication');
}else{
console.error("错误")
}