|
@ -71,7 +71,7 @@ |
|
|
<el-input autocomplete="off" v-model="form.meta.title"></el-input> |
|
|
<el-input autocomplete="off" v-model="form.meta.title"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="图标" prop="meta.icon" style="width:30%"> |
|
|
<el-form-item label="图标" prop="meta.icon" style="width:30%"> |
|
|
<icon :icon="icon"> |
|
|
|
|
|
|
|
|
<icon :meta="form.meta"> |
|
|
<template slot="prepend" >el-icon-</template> |
|
|
<template slot="prepend" >el-icon-</template> |
|
|
</icon> |
|
|
</icon> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -290,7 +290,6 @@ export default { |
|
|
this.dialogTitle = "编辑菜单"; |
|
|
this.dialogTitle = "编辑菜单"; |
|
|
const res = await getBaseMenuById({ id }); |
|
|
const res = await getBaseMenuById({ id }); |
|
|
this.form = res.data.menu; |
|
|
this.form = res.data.menu; |
|
|
this.icon = this.form.meta; |
|
|
|
|
|
this.isEdit = true; |
|
|
this.isEdit = true; |
|
|
this.setOptions(); |
|
|
this.setOptions(); |
|
|
this.dialogFormVisible = true; |
|
|
this.dialogFormVisible = true; |
|
|