Merge pull request 'init 2.5' (#8) from lyc-dev into main

This commit is contained in:
lyc 2024-10-30 10:38:17 +08:00
commit bc8b80e7d7
9 changed files with 42 additions and 6 deletions

View File

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4723712 */ font-family: "iconfont"; /* Project id 4723712 */
src: url('iconfont.woff2?t=1730189025078') format('woff2'), src: url('iconfont.woff2?t=1730255375658') format('woff2'),
url('iconfont.woff?t=1730189025078') format('woff'), url('iconfont.woff?t=1730255375658') format('woff'),
url('iconfont.ttf?t=1730189025078') format('truetype'); url('iconfont.ttf?t=1730255375658') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-yanhouke-shengyinyichang:before {
content: "\e672";
}
.icon-renzheng-:before { .icon-renzheng-:before {
content: "\e623"; content: "\e623";
} }

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,13 @@
"css_prefix_text": "icon-", "css_prefix_text": "icon-",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{
"icon_id": "5257347",
"name": "咽喉科-声音异常",
"font_class": "yanhouke-shengyinyichang",
"unicode": "e672",
"unicode_decimal": 58994
},
{ {
"icon_id": "7447571", "icon_id": "7447571",
"name": "认证-01", "name": "认证-01",

View File

@ -16,6 +16,7 @@
<span class="mlr-5">学校认证</span> <span class="mlr-5">学校认证</span>
<span class="gray">未认证</span> <span class="gray">未认证</span>
</li> </li>
<li>加入学校</li>
<li @click="onUserTo('/profile')">个人中心</li> <li @click="onUserTo('/profile')">个人中心</li>
<li @click="onUserTo('/class')">班级中心</li> <li @click="onUserTo('/class')">班级中心</li>
<li @click="logout">退出登录</li> <li @click="logout">退出登录</li>
@ -60,7 +61,6 @@ import pkc from "../../../../../package.json"
const { ipcRenderer } = window.electron || {} const { ipcRenderer } = window.electron || {}
const dev_api = ref(import.meta.env.VITE_APP_BASE_API) const dev_api = ref(import.meta.env.VITE_APP_BASE_API)
const userStore = useUserStore() const userStore = useUserStore()
console.log(userStore,'userStore')
const router = useRouter() const router = useRouter()
const currentRoute = ref('') const currentRoute = ref('')
const activeId = ref('/home') const activeId = ref('/home')
@ -93,8 +93,14 @@ const headerMenus = [
const sideBottomMenu = [ const sideBottomMenu = [
{ {
name: '设置', name: '算力',
id: 4, id: 4,
icon: 'icon-yanhouke-shengyinyichang',
path: '/hashrate'
},
{
name: '设置',
id: 5,
icon: 'icon-set', icon: 'icon-set',
path: '/setting' path: '/setting'
}, },

View File

@ -128,6 +128,12 @@ export const constantRoutes = [
name: 'examReport', name: 'examReport',
meta: {title: '考试分析'} meta: {title: '考试分析'}
}, },
{
path: '/hashrate',
component: () => import('@/views/hashrate/index.vue'),
name: 'hashrate',
meta: {title: '算力'}
},
{ {
path: '/setting', path: '/setting',
component: () => import('@/views/setting/index.vue'), component: () => import('@/views/setting/index.vue'),

View File

@ -0,0 +1,13 @@
<template>
<div>
算力
</div>
</template>
<script setup>
</script>
<style lang="scss" scoped>
</style>