mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
fix: 面板关于信息
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<SidebarMenu :menuItems="menuItems" />
|
||||
<div class="dashboard-container">
|
||||
<SidebarMenu :menuItems="menuItems" class="sidebar-menu" />
|
||||
<div class="content">
|
||||
<router-view />
|
||||
</div>
|
||||
@@ -29,14 +29,27 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.dashboard-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar-menu {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-left: 200px; /* 根据侧边栏宽度调整 */
|
||||
flex: 1;
|
||||
padding: 20px;
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.content {
|
||||
margin-left: 0; /* 移动端侧边栏收起 */
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ const selectAccount = async (accountName) => {
|
||||
//const { result, errMsg } = await SetQuickLogin(accountName, localStorage.getItem('auth'));
|
||||
if (true) {
|
||||
MessagePlugin.success("登录成功即将跳转");
|
||||
await router.push({ path: '/dashboard' });
|
||||
await router.push({ path: '/dashboard/basic-info' });
|
||||
} else {
|
||||
MessagePlugin.error("登录失败," + errMsg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user