@@ -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
@@ -104,7 +104,7 @@ const datalist = computed(() => {
return { text: e.value, value: e.value }