|
|
@@ -188,7 +188,7 @@ const formData = ref({
|
|
|
confirmPhone: ''
|
|
|
});
|
|
|
|
|
|
-const rules = ref({
|
|
|
+const rules = computed(() => ({
|
|
|
confirmAreaCode: {
|
|
|
rules: [
|
|
|
{
|
|
|
@@ -209,9 +209,12 @@ const rules = ref({
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
-});
|
|
|
+}));
|
|
|
|
|
|
const formRef = ref(null);
|
|
|
+watch(locale, () => {
|
|
|
+ formRef.value?.clearValidate()
|
|
|
+})
|
|
|
|
|
|
const cancel = () => {
|
|
|
visible.value = false;
|