新的新的首页!
This commit is contained in:
parent
d7279e3f2d
commit
af7444da5f
@ -7,7 +7,6 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-header>
|
</el-header>
|
||||||
|
|
||||||
<el-main>
|
<el-main>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -21,31 +20,6 @@
|
|||||||
</el-menu>
|
</el-menu>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card shadow="hover">
|
|
||||||
<h2>课程管理</h2>
|
|
||||||
<el-menu :default-active="activeMenu" router>
|
|
||||||
<el-menu-item index="/course">课程</el-menu-item>
|
|
||||||
<el-menu-item index="/courseList">课程列表</el-menu-item>
|
|
||||||
<el-menu-item index="/backgroundWrapper">背景包装</el-menu-item>
|
|
||||||
</el-menu>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card shadow="hover">
|
|
||||||
<h2>会议管理</h2>
|
|
||||||
<el-menu :default-active="activeMenu" router>
|
|
||||||
<el-menu-item index="/Meeting">会议管理</el-menu-item>
|
|
||||||
<el-menu-item index="/Meeting/add">添加会议</el-menu-item>
|
|
||||||
<el-menu-item index="/Meeting/edit/1">编辑会议</el-menu-item>
|
|
||||||
</el-menu>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row :gutter="20" style="margin-top: 20px;">
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<h2>新闻管理</h2>
|
<h2>新闻管理</h2>
|
||||||
@ -55,7 +29,17 @@
|
|||||||
</el-menu>
|
</el-menu>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-card shadow="hover">
|
||||||
|
<h2>课程管理</h2>
|
||||||
|
<el-menu :default-active="activeMenu" router>
|
||||||
|
<el-menu-item index="/course">课程</el-menu-item>
|
||||||
|
<el-menu-item index="/courseList">课程列表</el-menu-item>
|
||||||
|
</el-menu>
|
||||||
|
</el-card>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20" style="margin-top: 20px;">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<h2>组织管理</h2>
|
<h2>组织管理</h2>
|
||||||
@ -64,7 +48,15 @@
|
|||||||
</el-menu>
|
</el-menu>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-card shadow="hover">
|
||||||
|
<h2>会议管理</h2>
|
||||||
|
<el-menu :default-active="activeMenu" router>
|
||||||
|
<el-menu-item index="/Meeting">会议管理</el-menu-item>
|
||||||
|
<el-menu-item index="/Meeting/add">添加会议</el-menu-item>
|
||||||
|
</el-menu>
|
||||||
|
</el-card>
|
||||||
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<h2>用户管理</h2>
|
<h2>用户管理</h2>
|
||||||
@ -82,16 +74,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import {ref} from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import {useRouter} from 'vue-router'
|
||||||
import 'element-plus/dist/index.css'
|
import 'element-plus/dist/index.css'
|
||||||
import {useStore} from 'vuex'
|
import {useStore} from 'vuex'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const activeMenu = ref(router.currentRoute.value.path)
|
const activeMenu = ref(router.currentRoute.value.path)
|
||||||
|
|
||||||
if (store.getters['authentication/token']==null){
|
if (store.getters['authentication/token'] == null) {
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user