Commit abcdbb55 by 孙美琪

修改头像1

parent 3aa73546
...@@ -95,7 +95,7 @@ import Cookies from 'js-cookie' ...@@ -95,7 +95,7 @@ import Cookies from 'js-cookie'
import {encrypt, decrypt} from '@/utils/jsencrypt' import {encrypt, decrypt} from '@/utils/jsencrypt'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import {useRoute, useRouter} from 'vue-router' import {useRoute, useRouter} from 'vue-router'
import {sendCode} from "@/api/login.js"; import {getInfo, sendCode} from "@/api/login.js";
import {ElMessage} from "element-plus"; import {ElMessage} from "element-plus";
const userStore = useUserStore() const userStore = useUserStore()
...@@ -203,6 +203,8 @@ function handleLogin() { ...@@ -203,6 +203,8 @@ function handleLogin() {
} }
return acc return acc
}, {}) }, {})
useUserStore().getInfo().then(res => {
})
router.push({path: redirect.value || '/', query: otherQueryParams}) router.push({path: redirect.value || '/', query: otherQueryParams})
}).catch(() => { }).catch(() => {
loading.value = false loading.value = false
...@@ -216,6 +218,8 @@ function handleLogin() { ...@@ -216,6 +218,8 @@ function handleLogin() {
} }
return acc return acc
}, {}) }, {})
useUserStore().getInfo().then(res => {
})
router.push({path: redirect.value || '/', query: otherQueryParams}) router.push({path: redirect.value || '/', query: otherQueryParams})
}).catch(() => { }).catch(() => {
loading.value = false loading.value = false
......
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 sign in to comment