Przeglądaj źródła

人员选择fix bug

wangziqian 5 lat temu
rodzic
commit
4f2a4b3fe9
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      src/components/select/searchPeople.vue

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

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