mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: 面板关于信息
This commit is contained in:
napcat.webui/src
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="dashboard-container">
|
||||||
<SidebarMenu :menuItems="menuItems" />
|
<SidebarMenu :menuItems="menuItems" class="sidebar-menu" />
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
@@ -29,14 +29,27 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.dashboard-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-menu {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
margin-left: 200px; /* 根据侧边栏宽度调整 */
|
flex: 1;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
overflow: auto;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.content {
|
.content {
|
||||||
margin-left: 0; /* 移动端侧边栏收起 */
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -49,7 +49,7 @@ const selectAccount = async (accountName) => {
|
|||||||
//const { result, errMsg } = await SetQuickLogin(accountName, localStorage.getItem('auth'));
|
//const { result, errMsg } = await SetQuickLogin(accountName, localStorage.getItem('auth'));
|
||||||
if (true) {
|
if (true) {
|
||||||
MessagePlugin.success("登录成功即将跳转");
|
MessagePlugin.success("登录成功即将跳转");
|
||||||
await router.push({ path: '/dashboard' });
|
await router.push({ path: '/dashboard/basic-info' });
|
||||||
} else {
|
} else {
|
||||||
MessagePlugin.error("登录失败," + errMsg);
|
MessagePlugin.error("登录失败," + errMsg);
|
||||||
}
|
}
|
||||||
|
@@ -62,9 +62,9 @@ button:focus-visible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
max-width: 1280px;
|
height: 100%;
|
||||||
margin: 0 auto;
|
width: 100%;
|
||||||
padding: 2rem;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,6 +11,15 @@ import {
|
|||||||
MenuItem as TMenuItem,
|
MenuItem as TMenuItem,
|
||||||
Icon as TIcon,
|
Icon as TIcon,
|
||||||
Submenu as TSubmenu,
|
Submenu as TSubmenu,
|
||||||
|
Col as TCol,
|
||||||
|
Row as TRow,
|
||||||
|
Card as TCard,
|
||||||
|
Divider as TDivider,
|
||||||
|
Link as TLink,
|
||||||
|
List as TList,
|
||||||
|
Alert as TAlert,
|
||||||
|
Tag as TTag,
|
||||||
|
ListItem as TListItem,
|
||||||
|
|
||||||
} from 'tdesign-vue-next';
|
} from 'tdesign-vue-next';
|
||||||
import { router } from './router';
|
import { router } from './router';
|
||||||
@@ -27,4 +36,13 @@ app.use(TMenu);
|
|||||||
app.use(TMenuItem);
|
app.use(TMenuItem);
|
||||||
app.use(TIcon);
|
app.use(TIcon);
|
||||||
app.use(TSubmenu);
|
app.use(TSubmenu);
|
||||||
|
app.use(TCol);
|
||||||
|
app.use(TRow);
|
||||||
|
app.use(TCard);
|
||||||
|
app.use(TDivider);
|
||||||
|
app.use(TLink);
|
||||||
|
app.use(TList);
|
||||||
|
app.use(TAlert);
|
||||||
|
app.use(TTag);
|
||||||
|
app.use(TListItem);
|
||||||
app.mount('#app');
|
app.mount('#app');
|
@@ -1,6 +1,69 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="about-us">
|
<div class="about-us">
|
||||||
<h1>面板关于信息</h1>
|
<div>
|
||||||
<p>这里显示面板的关于信息。</p>
|
<t-divider content="面板关于信息" align="left" />
|
||||||
|
<t-alert theme="success" message="NapCat.WebUi is running" />
|
||||||
|
|
||||||
|
<t-list class="list">
|
||||||
|
<t-list-item class="list-item">
|
||||||
|
<span class="item-label">开发人员:</span>
|
||||||
|
<span class="item-content"><t-link href="mailto:nanaeonn@outlook.com">Mlikiowa</t-link></span>
|
||||||
|
</t-list-item>
|
||||||
|
<t-list-item class="list-item">
|
||||||
|
<span class="item-label">版本信息:</span>
|
||||||
|
<span class="item-content">
|
||||||
|
<t-tag class="tag-item" theme="success"> WebUi: 1.0.0 </t-tag>
|
||||||
|
<t-tag class="tag-item" theme="success"> NapCat: 1.0.0 </t-tag>
|
||||||
|
<t-tag class="tag-item" theme="success"> Tdesign: 1.0.0 </t-tag>
|
||||||
|
</span>
|
||||||
|
</t-list-item>
|
||||||
|
</t-list>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
methods: {
|
||||||
|
joinQQGroup() {
|
||||||
|
// 加入QQ群的逻辑
|
||||||
|
window.open('https://jq.qq.com/?_wv=1027&k=123456789', '_blank');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.about-us {
|
||||||
|
padding: 20px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-label {
|
||||||
|
flex: 1;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-content {
|
||||||
|
flex: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-end; /* 添加这一行 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-item {
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
Reference in New Issue
Block a user