Handy_Cao 1 年間 前
コミット
9fc9039801

+ 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