|
|
|
@ -28,7 +28,7 @@
|
|
|
|
import { createFromIconfontCN } from "@ant-design/icons-vue";
|
|
|
|
import { createFromIconfontCN } from "@ant-design/icons-vue";
|
|
|
|
// import { menuApi } from "../api/menu";
|
|
|
|
// import { menuApi } from "../api/menu";
|
|
|
|
import { h, reactive, onMounted, ref, watch } from "vue";
|
|
|
|
import { h, reactive, onMounted, ref, watch } from "vue";
|
|
|
|
import { TagsOutlined, HomeOutlined, ShoppingOutlined, UserOutlined, ApartmentOutlined, TeamOutlined, ContainerOutlined, AccountBookOutlined, BarChartOutlined, MailOutlined, SettingOutlined, AuditOutlined, SketchOutlined, MenuUnfoldOutlined, MenuFoldOutlined, SolutionOutlined } from "@ant-design/icons-vue";
|
|
|
|
import { TagsOutlined, HomeOutlined, ShoppingOutlined,MessageOutlined,FileProtectOutlined, UserOutlined,UsergroupAddOutlined, ApartmentOutlined, TeamOutlined, ContainerOutlined, AccountBookOutlined, BarChartOutlined, MailOutlined, SettingOutlined, AuditOutlined, SketchOutlined, MenuUnfoldOutlined, MenuFoldOutlined, SolutionOutlined } from "@ant-design/icons-vue";
|
|
|
|
import { useStore } from "../stores/counter.ts";
|
|
|
|
import { useStore } from "../stores/counter.ts";
|
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
|
import { mockMenuList } from "../utils/mock.js";
|
|
|
|
import { mockMenuList } from "../utils/mock.js";
|
|
|
|
@ -111,16 +111,16 @@ onMounted(() => {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
switch (item.menuName) {
|
|
|
|
switch (item.menuName) {
|
|
|
|
case "HomePage":
|
|
|
|
case "HomePage":
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(HomeOutlined)));
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(UsergroupAddOutlined)));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "projectData":
|
|
|
|
case "projectData":
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(AuditOutlined)));
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(FileProtectOutlined)));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "personData":
|
|
|
|
case "personData":
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(MailOutlined)));
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(UserOutlined)));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "message":
|
|
|
|
case "message":
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(HomeOutlined)));
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(MessageOutlined)));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "ServiceMarket":
|
|
|
|
case "ServiceMarket":
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(SketchOutlined)));
|
|
|
|
items.push(getItem(item.title, item.id, item.component, () => h(SketchOutlined)));
|
|
|
|
|