Selaa lähdekoodia

人员选择fix bug

wangziqian 5 vuotta sitten
vanhempi
sitoutus
4f2a4b3fe9
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/components/select/searchPeople.vue

+ 3 - 0
src/components/select/searchPeople.vue

@@ -67,6 +67,9 @@ export default {
   watch: {
   watch: {
     value: {
     value: {
       handler(newV, oldV) {
       handler(newV, oldV) {
+        if (this.searchValue === newV) {
+          return
+        }
         this.searchValue = newV
         this.searchValue = newV
         const type = Object.prototype.toString.call(this.searchValue)
         const type = Object.prototype.toString.call(this.searchValue)
         if (type.indexOf('Array') < 0) {
         if (type.indexOf('Array') < 0) {