菜单管理保存时删除无用字段

master
mabo 2021-07-27 16:13:38 +08:00
parent eb4a5e4fdc
commit 5fb6986a18
1 changed files with 3 additions and 1 deletions

View File

@ -448,11 +448,11 @@ export default {
// //
selectTree(v) { selectTree(v) {
if (v.length > 0) { if (v.length > 0) {
// null""
let str = JSON.stringify(v); let str = JSON.stringify(v);
let menu = JSON.parse(str); let menu = JSON.parse(str);
this.form = menu[0]; this.form = menu[0];
console.log(this.form);
this.editTitle = menu[0].title; this.editTitle = menu[0].title;
} else { } else {
this.cancelEdit(); this.cancelEdit();
@ -492,6 +492,8 @@ export default {
delete this.form.updateTime; delete this.form.updateTime;
delete this.form.selected; delete this.form.selected;
delete this.form.description; delete this.form.description;
delete this.form.children;
delete this.form.children;
editPermission(this.form).then((res) => { editPermission(this.form).then((res) => {
this.submitLoading = false; this.submitLoading = false;