|
|
@@ -137,9 +137,11 @@ const onSubmit = () => {
|
|
|
formSubmit().then((res) => {
|
|
|
/// 失败
|
|
|
if (res.code.toString() === '0') {
|
|
|
- hideLoading()
|
|
|
- dialog(t("user.authentication.opensuccess")).then(() => {
|
|
|
- router.back()
|
|
|
+ userStore.getUserData().finally(() => {
|
|
|
+ hideLoading()
|
|
|
+ dialog(t("user.authentication.opensuccess")).then(() => {
|
|
|
+ router.back()
|
|
|
+ })
|
|
|
})
|
|
|
} else {
|
|
|
showFailToast(res.message)
|