fix: move admin and web to correct locations

This commit is contained in:
bwstudio
2026-05-21 21:45:31 +08:00
parent 89fa43d5fa
commit 7f51d200f1
36 changed files with 566 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
<template>
<el-container style="min-height: 100vh">
<el-aside width="200px" style="background: #304156">
<div class="logo">笑话管理后台</div>
<el-menu
:default-active="$route.path"
background-color="#304156"
text-color="#bfcbd9"
active-text-color="#409EFF"
router
>
<el-menu-item index="/dashboard">
<span>仪表盘</span>
</el-menu-item>
<el-menu-item index="/jokes">
<span>笑话管理</span>
</el-menu-item>
<el-menu-item index="/category/type">
<span>类型管理</span>
</el-menu-item>
<el-menu-item index="/category/crowd">
<span>人群管理</span>
</el-menu-item>
</el-menu>
</el-aside>
<el-container>
<el-header style="display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid #e6e6e6">
<el-button @click="handleLogout" size="small">退出登录</el-button>
</el-header>
<el-main>
<router-view />
</el-main>
</el-container>
</el-container>
</template>
<script setup>
import { useRouter } from 'vue-router'
import { useAuthStore } from '@/stores/auth'
const router = useRouter()
const authStore = useAuthStore()
const handleLogout = () => {
authStore.logout()
router.push('/login')
}
</script>
<style scoped>
.logo {
height: 60px;
line-height: 60px;
text-align: center;
color: #fff;
font-size: 18px;
font-weight: bold;
background: #2b3a4a;
}
.el-aside {
background: #304156;
}
</style>