Browse Source

报错信息不在msg中

lifanagju_citu 1 tuần trước cách đây
mục cha
commit
78e29d4c3c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/VerificationCode/index.vue

+ 1 - 1
src/components/VerificationCode/index.vue

@@ -172,7 +172,7 @@ const getSmsCode = async () => {
     await sendSmsCode(query)
     Snackbar.success(t('login.sendCode'))
   } catch (error) {
-    Snackbar.error(error.msg)
+    Snackbar.error(error?.msg || error)
   }
 }
 const setTime = () => {