li.shaoyi 3 veckor sedan
förälder
incheckning
6c8d435c9e
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5 3
      src/packages/digital/views/account/certification/index.vue

+ 5 - 3
src/packages/digital/views/account/certification/index.vue

@@ -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)