Compare commits
No commits in common. "43d2966b20b86ed832292fe6b3f7da88a15a713f" and "d440ad0008bcbc2258a172b0f1c8034961efe795" have entirely different histories.
43d2966b20
...
d440ad0008
@ -77,7 +77,7 @@ const menuItems: MenuItem[] = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ path: '/controlPanel/container', name: '容器实例', icon: ConsoleSqlOutlined },
|
{ path: '/controlPanel/container', name: '容器实例', icon: ConsoleSqlOutlined },
|
||||||
{ path: '/controlPanel/fileStore', name: '文件存储', icon: FolderOpenOutlined },
|
// { path: '/controlPanel/fileStore', name: '文件存储', icon: FolderOpenOutlined },
|
||||||
{ path: '/controlPanel/image', name: '镜像', icon: GlobalOutlined },
|
{ path: '/controlPanel/image', name: '镜像', icon: GlobalOutlined },
|
||||||
{ path: '/controlPanel/publicData', name: '公开数据', icon: LaptopOutlined },
|
{ path: '/controlPanel/publicData', name: '公开数据', icon: LaptopOutlined },
|
||||||
|
|
||||||
|
|||||||
@ -249,12 +249,6 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: "Image",
|
name: "Image",
|
||||||
component: () => import("@/views/admin/image/index.vue"),
|
component: () => import("@/views/admin/image/index.vue"),
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
path: "fileStore",
|
|
||||||
name: "fileStore",
|
|
||||||
component: () => import("@/views/admin/fileStore/index.vue"),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "contract",
|
path: "contract",
|
||||||
name: "contract",
|
name: "contract",
|
||||||
|
|||||||
@ -25,16 +25,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { h, reactive, computed } from 'vue';
|
import { h, reactive, computed, watch } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter, useRoute } from 'vue-router';
|
||||||
import {
|
import {
|
||||||
HomeOutlined,
|
HomeOutlined,
|
||||||
ConsoleSqlOutlined,
|
ConsoleSqlOutlined,
|
||||||
GlobalOutlined,
|
GlobalOutlined,
|
||||||
MoneyCollectOutlined,
|
MoneyCollectOutlined,
|
||||||
TeamOutlined,
|
TeamOutlined,
|
||||||
AppstoreAddOutlined,
|
AppstoreAddOutlined
|
||||||
InboxOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import type { MenuMode, MenuTheme } from 'ant-design-vue';
|
import type { MenuMode, MenuTheme } from 'ant-design-vue';
|
||||||
|
|
||||||
@ -42,7 +41,9 @@ import type { MenuMode, MenuTheme } from 'ant-design-vue';
|
|||||||
import type { MenuProps } from 'ant-design-vue';
|
import type { MenuProps } from 'ant-design-vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
watch(() => router.currentRoute.value.path, (newPath) => {
|
||||||
|
state.selectedKeys = [newPath];
|
||||||
|
});
|
||||||
// 定义菜单原始数据
|
// 定义菜单原始数据
|
||||||
interface MenuItem {
|
interface MenuItem {
|
||||||
path: string;
|
path: string;
|
||||||
@ -58,7 +59,7 @@ const menuItems: MenuItem[] = [
|
|||||||
|
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: '费用',
|
name: '费用中心',
|
||||||
icon: MoneyCollectOutlined,
|
icon: MoneyCollectOutlined,
|
||||||
visible: true,
|
visible: true,
|
||||||
children: [
|
children: [
|
||||||
@ -79,18 +80,19 @@ const menuItems: MenuItem[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: '账号',
|
name: '我的账号',
|
||||||
icon: TeamOutlined,
|
icon: TeamOutlined,
|
||||||
visible: true,
|
visible: true,
|
||||||
children: [
|
children: [
|
||||||
{ path: '/layout/admin/security', name: '账号安全', visible: true },
|
// { path: '/layout/admin/security', name: '账号安全', visible: true },
|
||||||
{ path: '/layout/admin/history', name: '访问记录', visible: true },
|
// { path: '/layout/admin/history', name: '访问记录', visible: true },
|
||||||
{ path: '/layout/admin/accountSet', name: '账户设置', visible: true },
|
{ path: '/layout/admin/accountSet', name: '账户设置', visible: true },
|
||||||
{ path: '/layout/admin/realnameAuth', name: '实名认证', visible: true },
|
{ path: '/layout/admin/realnameAuth', name: '实名认证', visible: true },
|
||||||
{ path: '/layout/admin/myCertificate', name: '我的算力券', visible: true },
|
{ path: '/layout/admin/myCertificate', name: '我的算力券', visible: true },
|
||||||
{ path: '/layout/admin/myInvite', name: '我的邀请', visible: true },
|
{ path: '/layout/admin/myInvite', name: '我的邀请', visible: true },
|
||||||
{ path: '/layout/admin/msgCenter', name: '消息中心', visible: true },
|
{ path: '/layout/admin/msgCenter', name: '消息中心', visible: true },
|
||||||
{ path: '/layout/admin/bankCard', name: '银行卡管理', visible: true },
|
{ path: '/layout/admin/bankCard', name: '银行卡管理', visible: true },
|
||||||
|
{ path: '/layout/admin/invoices', name: '发票抬头管理', visible: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ path: '/layout/admin/image', name: '镜像管理', icon: GlobalOutlined, visible: true },
|
{ path: '/layout/admin/image', name: '镜像管理', icon: GlobalOutlined, visible: true },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user