Compare commits

..

No commits in common. "43d2966b20b86ed832292fe6b3f7da88a15a713f" and "d440ad0008bcbc2258a172b0f1c8034961efe795" have entirely different histories.

3 changed files with 13 additions and 17 deletions

View File

@ -77,7 +77,7 @@ const menuItems: MenuItem[] = [
]
},
{ 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/publicData', name: '公开数据', icon: LaptopOutlined },

View File

@ -249,12 +249,6 @@ const routes: RouteRecordRaw[] = [
name: "Image",
component: () => import("@/views/admin/image/index.vue"),
},
{
path: "fileStore",
name: "fileStore",
component: () => import("@/views/admin/fileStore/index.vue"),
},
{
path: "contract",
name: "contract",

View File

@ -25,16 +25,15 @@
</template>
<script lang="ts" setup>
import { h, reactive, computed } from 'vue';
import { useRouter } from 'vue-router';
import { h, reactive, computed, watch } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import {
HomeOutlined,
ConsoleSqlOutlined,
GlobalOutlined,
MoneyCollectOutlined,
TeamOutlined,
AppstoreAddOutlined,
InboxOutlined,
AppstoreAddOutlined
} from '@ant-design/icons-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';
const router = useRouter();
watch(() => router.currentRoute.value.path, (newPath) => {
state.selectedKeys = [newPath];
});
//
interface MenuItem {
path: string;
@ -58,7 +59,7 @@ const menuItems: MenuItem[] = [
{
path: '',
name: '费用',
name: '费用中心',
icon: MoneyCollectOutlined,
visible: true,
children: [
@ -79,18 +80,19 @@ const menuItems: MenuItem[] = [
},
{
path: '',
name: '账号',
name: '我的账号',
icon: TeamOutlined,
visible: true,
children: [
{ path: '/layout/admin/security', name: '账号安全', visible: true },
{ path: '/layout/admin/history', name: '访问记录', visible: true },
// { path: '/layout/admin/security', name: '', visible: true },
// { path: '/layout/admin/history', name: '访', visible: true },
{ path: '/layout/admin/accountSet', name: '账户设置', visible: true },
{ path: '/layout/admin/realnameAuth', name: '实名认证', visible: true },
{ path: '/layout/admin/myCertificate', name: '我的算力券', visible: true },
{ path: '/layout/admin/myInvite', name: '我的邀请', visible: true },
{ path: '/layout/admin/msgCenter', 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 },