feat: 登录页面

This commit is contained in:
renxiaodong
2025-06-20 06:10:15 -04:00
parent 1641320847
commit 54f620d92f
12 changed files with 328 additions and 287 deletions

View File

@ -2,10 +2,11 @@
import { useAppStore } from '@/stores';
import { IconExport, IconFile, IconCaretDown } from '@arco-design/web-vue/es/icon';
import { fetchMenusTree } from '@/api/all';
import { handleUserLogout } from '@/utils/user';
const lists = ref([]);
const router = useRouter();
const clickExit = () => {
router.replace('/login');
handleUserLogout();
};
const getMenus = async () => {
const res = await fetchMenusTree();
@ -16,7 +17,6 @@ onMounted(() => {
});
const appStore = useAppStore();
function setServerMenu() {
appStore.fetchServerMenuConfig();
console.log(appStore.serverMenu);
@ -59,7 +59,7 @@ const handleDopdownClick = (index: any, ind: any) => {
<div class="center-side">
<div class="menu-demo">
<a-menu mode="horizontal" :default-selected-keys="['1']">
<a-menu-item :key="'1'" @click="handleSelect(0)">
<a-menu-item key="1" @click="handleSelect(0)">
<view>工作台</view>
</a-menu-item>
<a-menu-item v-for="(item, index) in lists" :key="index + 2">