|
|
@@ -8,16 +8,32 @@
|
|
|
<el-menu :default-active="activeIndex" mode="horizontal" :ellipsis="false" class="meauList">
|
|
|
<el-menu-item index="1" @click="$router.push('/')">AI工作流</el-menu-item>
|
|
|
<!-- <el-menu-item index="2" @click="$router.push('/my-learning')">工作流交易</el-menu-item> -->
|
|
|
- <el-menu-item index="2" @click="goMyLearning">我的学习</el-menu-item>
|
|
|
+ <el-menu-item index="2" @click="goMyLearning">工作流交易</el-menu-item>
|
|
|
<el-menu-item index="3" @click="$router.push('/my-learning')">学习教程系统</el-menu-item>
|
|
|
<el-menu-item index="4" @click="$router.push('/my-learning')">学习笔记</el-menu-item>
|
|
|
<el-menu-item index="5" @click="$router.push('/my-learning')">积分商城</el-menu-item>
|
|
|
</el-menu>
|
|
|
<div class="header-right">
|
|
|
- <el-button type="text">登录</el-button>
|
|
|
- <el-button type="primary">注册</el-button>
|
|
|
+ <el-avatar :size="32" :src="appStore.userInfo?.avatar || 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'" />
|
|
|
+ <el-dropdown>
|
|
|
+ <span class="el-dropdown-link">
|
|
|
+ 用户1
|
|
|
+ <el-icon class="el-icon--right">
|
|
|
+ <arrow-down />
|
|
|
+ </el-icon>
|
|
|
+ </span>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
+ <el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
+ <el-dropdown-item>Action 3</el-dropdown-item>
|
|
|
+ <el-dropdown-item disabled>Action 4</el-dropdown-item>
|
|
|
+ <el-dropdown-item divided>Action 5</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+ <LangSwitch />
|
|
|
</div>
|
|
|
- <LangSwitch />
|
|
|
</div>
|
|
|
</el-header>
|
|
|
|
|
|
@@ -27,7 +43,7 @@
|
|
|
|
|
|
<el-footer>
|
|
|
<div class="footer-content">
|
|
|
- <p>© 2025 视频学习平台 - 版权所有</p>
|
|
|
+ <p>服务协议隐私政策浙ICP备2024141841号-6浙公网安备 33011002018505 号</p>
|
|
|
</div>
|
|
|
</el-footer>
|
|
|
</el-container>
|
|
|
@@ -42,7 +58,9 @@ import { ElConfigProvider } from 'element-plus'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
// 在Pinia安装后再设置初始语言
|
|
|
import { useLangStore } from '@/pinia/langStore'
|
|
|
-const langStore = useLangStore()
|
|
|
+import { useAppStore } from '@/pinia/appStore'
|
|
|
+const langStore = useLangStore();
|
|
|
+const appStore = useAppStore();
|
|
|
$i18n.global.locale.value = langStore.currentLang
|
|
|
// 动态更新页面标题
|
|
|
langStore.updateDynamicTitle()
|
|
|
@@ -80,14 +98,17 @@ const activeIndex = computed(() => {
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
|
|
.header-content {
|
|
|
- max-width: 1200px;
|
|
|
+ max-width: 1520px;
|
|
|
+ width: 80%;
|
|
|
+ min-width: 1200px;
|
|
|
margin: 0 auto;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
.logo {
|
|
|
- font-size: 1.5rem;
|
|
|
+ min-width: 220px;
|
|
|
+ font-size: 24px;
|
|
|
font-weight: bold;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
@@ -98,22 +119,27 @@ const activeIndex = computed(() => {
|
|
|
.el-menu--horizontal.el-menu{
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
+ .el-menu-item{
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.header-right {
|
|
|
+ margin-right: 30px;
|
|
|
display: flex;
|
|
|
+ align-items: center; /* 垂直居中 */
|
|
|
gap: 10px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.el-footer {
|
|
|
- // background-color: #f5f5f5;
|
|
|
color: #666;
|
|
|
text-align: center;
|
|
|
padding: 20px 0;
|
|
|
|
|
|
.footer-content {
|
|
|
+ font-size: 14px;
|
|
|
max-width: 1200px;
|
|
|
margin: 0 auto;
|
|
|
}
|