Эх сурвалжийг харах

Update add-or-update-dialog.vue

damon227 1 жил өмнө
parent
commit
7e42062239

+ 1 - 1
src/views/modules/worder/add-or-update-dialog.vue

@@ -183,7 +183,7 @@ export default {
     // 初始化。type:{addItem:仅回调方法返回数据,update:调用接口更新}
     async init (id, item, type) {
       this.id = id || 0
-      this.type = type
+      this.type = type || 'addItem'
       if (item) {
         this.isModify = true
         if (item.attachList) {