稳定提交
This commit is contained in:
parent
91f6c9237f
commit
2c5591b205
|
@ -5,7 +5,7 @@ import { post } from '@/utils/request'
|
||||||
* @param data
|
* @param data
|
||||||
*/
|
*/
|
||||||
export function fetchDetail(id) {
|
export function fetchDetail(id) {
|
||||||
return post('/exam/api/exam/exam/detail', { id: id })
|
return post('/api/common/exam/api/exam/exam/detail', { id: id })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<span>云帆教育</span>
|
<span>云帆教育</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="main-nav">
|
<nav class="main-nav">
|
||||||
<router-link to="/">首页</router-link>
|
<router-link to="/">首页</router-link>
|
||||||
<router-link to="/course">课程中心</router-link>
|
<router-link to="/course">课程中心</router-link>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<router-link to="/mall">积分商城</router-link>
|
<router-link to="/mall">积分商城</router-link>
|
||||||
<router-link to="/announcement">公告</router-link>
|
<router-link to="/announcement">公告</router-link>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="user-actions">
|
<div class="user-actions">
|
||||||
<template v-if="userStore.isLoggedIn">
|
<template v-if="userStore.isLoggedIn">
|
||||||
<!-- 管理员入口 -->
|
<!-- 管理员入口 -->
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<el-icon><Setting /></el-icon>
|
<el-icon><Setting /></el-icon>
|
||||||
<span>管理后台</span>
|
<span>管理后台</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<el-dropdown trigger="click" @command="handleCommand">
|
<el-dropdown trigger="click" @command="handleCommand">
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<el-avatar :size="32" :src="userStore.userInfo.avatar" />
|
<el-avatar :size="32" :src="userStore.userInfo.avatar" />
|
||||||
|
@ -41,10 +41,10 @@
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<router-link to="/login" class="login-btn">登录</router-link>
|
<router-link to="/login" class="login-btn">登录</router-link>
|
||||||
<router-link to="/register" class="register-btn">注册</router-link>
|
<!-- <router-link to="/register" class="register-btn">注册</router-link>-->
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -80,7 +80,7 @@ const handleCommand = (command) => {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
||||||
.header-container {
|
.header-container {
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
@ -89,40 +89,40 @@ const handleCommand = (command) => {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
a {
|
a {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 36px;
|
height: 36px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-nav {
|
.main-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.router-link-active {
|
&.router-link-active {
|
||||||
color: #409EFF;
|
color: #409EFF;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -133,18 +133,18 @@ const handleCommand = (command) => {
|
||||||
background-color: #409EFF;
|
background-color: #409EFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #409EFF;
|
color: #409EFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-actions {
|
.user-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
|
|
||||||
.admin-link {
|
.admin-link {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -154,41 +154,41 @@ const handleCommand = (command) => {
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #ecf5ff;
|
background-color: #ecf5ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn, .register-btn {
|
.login-btn, .register-btn {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: 6px 15px;
|
padding: 6px 15px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn {
|
.login-btn {
|
||||||
color: #409EFF;
|
color: #409EFF;
|
||||||
border: 1px solid #409EFF;
|
border: 1px solid #409EFF;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #ecf5ff;
|
background-color: #ecf5ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-btn {
|
.register-btn {
|
||||||
background-color: #409EFF;
|
background-color: #409EFF;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #66b1ff;
|
background-color: #66b1ff;
|
||||||
}
|
}
|
||||||
|
@ -196,4 +196,4 @@ const handleCommand = (command) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -139,7 +139,7 @@ export default {
|
||||||
// 可批量操作
|
// 可批量操作
|
||||||
multi: false,
|
multi: false,
|
||||||
// 列表请求URL
|
// 列表请求URL
|
||||||
listUrl: '/exam/api/exam/exam/online-paging'
|
listUrl: '/api/common/exam/api/exam/exam/online-paging'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue