liyongli há 1 dia atrás
pai
commit
421cca77e9

+ 3 - 1
src/view/fenghui/form.vue

@@ -453,8 +453,10 @@ const checkbox = ref(null);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)

+ 3 - 1
src/view/fenghui/form1.vue

@@ -439,8 +439,10 @@ const photo = ref([]);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)

+ 3 - 1
src/view/fenghui/form1Recurrence.vue

@@ -439,8 +439,10 @@ const photo = ref([]);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)

+ 3 - 1
src/view/fenghui/formRecurrence.vue

@@ -450,8 +450,10 @@ const checkbox = ref(null);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)