caojunjie преди 2 години
родител
ревизия
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) {