瀏覽代碼

Update add-or-update-dialog.vue

damon227 1 年之前
父節點
當前提交
7e42062239
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/modules/worder/add-or-update-dialog.vue

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