refactor: 系统管理页面重构和ts类型声明优化

Former-commit-id: 40263bbb072596ada41ef33d9170841e7e66cd01
This commit is contained in:
郝先瑞 committed 2022-06-15 00:48:17 +08:00
1 parent 928ba2dbd8
commit 321b584f9f
116 files changed
+1692 -1485

No files matched your search

+3 -3
View File
@@ -4,7 +4,7 @@
<el-col :span="10" :xs="24">
<el-card class="box-card" shadow="always">
<template #header>
<svg-icon color="#333" icon-class="menu" />
<svg-icon icon-class="menu" />
菜单列表
</template>
<menu-table @menuClick="handleMenuClick" />
@@ -13,7 +13,7 @@
<el-col :span="14" :xs="24">
<el-card class="box-card" shadow="always">
<template #header>
<svg-icon color="#333" icon-class="perm" />
<svg-icon icon-class="perm" />
<span style="margin: 0 5px">权限列表</span>
<el-tag type="success" v-if="menuId" size="small">{{
menuName
@@ -38,7 +38,7 @@ import { reactive, toRefs } from 'vue';
const state = reactive({
menuId: undefined,
menuName: ''
menuName: '',
});
const { menuId, menuName } = toRefs(state);