Prechádzať zdrojové kódy

提交选人组件的bug

Lijy 1 rok pred
rodič
commit
9ac0e0dc15

+ 3 - 1
fhKeeper/formulahousekeeper/timesheet/src/components/select.vue

@@ -350,7 +350,9 @@ export default {
                 this.show = !this.show
                 this.move = !this.move
                 this.searchTex = ''
-                this.$set(this, 'options', this.optionsCopy)
+                if(this.optionsCopy.length > 0) {
+                    this.$set(this, 'options', JSON.parse(JSON.stringify(this.optionsCopy)))
+                }
             }
         },
         selectClihide() {