feat:更新训练场模块

This commit is contained in:
2026-07-30 13:08:23 +08:00
parent 78237984ec
commit 280ea9f7d0
21 changed files with 935 additions and 201 deletions

View File

@@ -3,7 +3,7 @@
<!-- 侧边栏 -->
<el-aside :width="isCollapse ? '64px' : '150px'" class="aside">
<!-- Logo -->
<div class="logo">
<div class="logo" @click="refreshClick">
<span v-if="!isCollapse">🧠 智能学习助手</span>
<span v-else>🧠</span>
</div>
@@ -63,7 +63,7 @@
<!-- 用户信息 -->
<el-dropdown>
<el-avatar :size="32" class="avatar"></el-avatar>
<el-avatar :size="32" class="avatar"></el-avatar>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item>个人中心</el-dropdown-item>
@@ -89,23 +89,24 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useRoute } from 'vue-router'
import { ElMessageBox } from 'element-plus'
import { Reading, Aim, EditPen, Notebook, DataLine, Fold, Expand, Bell } from '@element-plus/icons-vue'
const route = useRoute()
const router = useRouter()
const isCollapse = ref(false)
const refreshClick = () => {
location.reload()
}
// 退出登录
const handleLogout = () => {
ElMessageBox.confirm('确定要退出登录吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
router.push('/login')
}).catch(() => {})
})
}
</script>
@@ -129,6 +130,7 @@ const handleLogout = () => {
font-weight: 600;
color: #14b8a6;
border-bottom: 1px solid #e2e8f0;
cursor: pointer;
}
.side-menu {