优化后台管理代码

后台管理 : http://localhost:5174/admin (直接URL访问)
This commit is contained in:
Qyir 2025-11-03 16:08:14 +08:00
parent 9b5b430997
commit a726e4d8b3

View File

@ -253,9 +253,9 @@ const getRankBadgeClass = (rank) => {
} }
// //
const goToAdmin = () => { // const goToAdmin = () => {
router.push('/admin') // router.push('/admin')
} // }
// //
onMounted(() => { onMounted(() => {
@ -275,7 +275,6 @@ onMounted(() => {
<div class="header-section"> <div class="header-section">
<div class="title-wrapper"> <div class="title-wrapper">
<h1 class="main-title">AI棒榜</h1> <h1 class="main-title">AI棒榜</h1>
<button class="admin-btn" @click="goToAdmin">管理</button>
</div> </div>
</div> </div>
@ -461,10 +460,7 @@ onMounted(() => {
gap: 10px; gap: 10px;
position: relative; position: relative;
} }
.logo-icon {
width: 40px;
height: 40px;
}
.main-title { .main-title {
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: bold;
@ -473,25 +469,6 @@ onMounted(() => {
font-family: Alatsi, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimHei, Arial, Helvetica, sans-serif; font-family: Alatsi, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimHei, Arial, Helvetica, sans-serif;
} }
.admin-btn {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
background: #4a90e2;
color: white;
border: none;
border-radius: 6px;
padding: 6px 12px;
font-size: 12px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.admin-btn:hover {
background: #357abd;
}
/* 横幅区域 */ /* 横幅区域 */
.banner-section { .banner-section {
margin: 20px 16px; margin: 20px 16px;