Skip to content

Commit cec6f16

Browse files
author
QM303176530
committed
增加表格内icon
1 parent e58cf25 commit cec6f16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/src/view/superAdmin/menu/menu.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<el-input autocomplete="off" v-model="form.meta.title"></el-input>
7272
</el-form-item>
7373
<el-form-item label="图标" prop="meta.icon" style="width:30%">
74-
<icon :icon="icon">
74+
<icon :meta="form.meta">
7575
<template slot="prepend" >el-icon-</template>
7676
</icon>
7777
</el-form-item>
@@ -290,7 +290,6 @@ export default {
290290
this.dialogTitle = "编辑菜单";
291291
const res = await getBaseMenuById({ id });
292292
this.form = res.data.menu;
293-
this.icon = this.form.meta;
294293
this.isEdit = true;
295294
this.setOptions();
296295
this.dialogFormVisible = true;

0 commit comments

Comments
 (0)