caojunjie 2 лет назад
Родитель
Сommit
3166929aee
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      src/views/costManagement/index.vue

+ 6 - 1
src/views/costManagement/index.vue

@@ -1349,7 +1349,12 @@ export default {
       }
       if (name === 'expenseType') {
         if (id == 0) {
-          this.contentOption = [...this.contentOption, ...this.pushList]
+          let item = this.contentOption.find(item => {
+            return item.name == "户头";
+          });
+          if (!item){
+            this.contentOption = [...this.contentOption, ...this.pushList]
+          }
           this.inDex = this.contentOption.length
         } else {
           for (let item in this.contentOption) {