|
@@ -194,8 +194,8 @@ export default {
|
|
|
...mapStores(useUserStore),
|
|
|
},
|
|
|
created() {
|
|
|
- // 如果路由上带了token,且cookie中的token为空,说明是从oa刚跳转过来,需要进行登录
|
|
|
- if (this.$route.query.token && !getToken()) {
|
|
|
+ // 如果路由上带了token,说明是从oa刚跳转过来,需要进行登录
|
|
|
+ if (this.$route.query.token) {
|
|
|
loginByOAInfo(this.$route.query.token).then(res => {
|
|
|
setToken(res.data.tokenValue);
|
|
|
this.userStore.setUserInfo(res.data);
|