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