Lijy 1 год назад
Родитель
Сommit
9ac0e0dc15
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      fhKeeper/formulahousekeeper/timesheet/src/components/select.vue

+ 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() {