Handy_Cao 1 سال پیش
والد
کامیت
9fc9039801
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/packages/mobile/views/user/forget/Index.vue
  2. 1 1
      src/packages/mobile/views/user/register/Index.vue

+ 1 - 1
src/packages/mobile/views/user/forget/Index.vue

@@ -69,7 +69,7 @@ const datalist = computed(() => {
     })
 })
 const show = shallowRef(false) // 是否弹出选择器
-const countryCode = ref(datalist.value[0]?.value.toString())
+const countryCode = ref(datalist.value[0]?.value.toString() ?? '')
 
 const onCancel = () => {
     show.value = false

+ 1 - 1
src/packages/mobile/views/user/register/Index.vue

@@ -104,7 +104,7 @@ const datalist = computed(() => {
     return { text: e.value, value: e.value }
   })
 })
-const countryCode = ref(datalist.value[0]?.value.toString())
+const countryCode = ref(datalist.value[0]?.value.toString() ?? '')
 
 const onCancel = () => {
   show.value = false