自定义模型回显

This commit is contained in:
xierz 2020-12-03 12:09:54 +08:00
parent 96777cff79
commit 6c0dded80e
1 changed files with 8 additions and 0 deletions

View File

@ -509,6 +509,14 @@
if (!res.data.categoryId) { if (!res.data.categoryId) {
res.data.categoryId = '0'; res.data.categoryId = '0';
} }
var mdiyModelId = res.data.mdiyModelId;
if (mdiyModelId) {
mdiyModelId += "";
if (mdiyModelId == "0") {
mdiyModelId = null;
}
res.data.mdiyModelId = mdiyModelId;
}
that.form = res.data; //判断该分类是否存在文章,存在则不能修改栏目属性 that.form = res.data; //判断该分类是否存在文章,存在则不能修改栏目属性