diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index 778f7b4..48956b3 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4723712 */ - src: url('iconfont.woff2?t=1730189025078') format('woff2'), - url('iconfont.woff?t=1730189025078') format('woff'), - url('iconfont.ttf?t=1730189025078') format('truetype'); + src: url('iconfont.woff2?t=1730255375658') format('woff2'), + url('iconfont.woff?t=1730255375658') format('woff'), + url('iconfont.ttf?t=1730255375658') format('truetype'); } .iconfont { @@ -13,6 +13,10 @@ -moz-osx-font-smoothing: grayscale; } +.icon-yanhouke-shengyinyichang:before { + content: "\e672"; +} + .icon-renzheng-:before { content: "\e623"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.js b/src/renderer/src/assets/iconfont/iconfont.js index 7eb661c..05907b9 100644 --- a/src/renderer/src/assets/iconfont/iconfont.js +++ b/src/renderer/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_4723712='',(l=>{var h=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var v,a,t,z,i,p=function(h,c){c.parentNode.insertBefore(h,c)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}v=function(){var h,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4723712,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(h=document.body).firstChild?p(c,h.firstChild):h.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),v()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(t=v,z=l.document,i=!1,o(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,M())})}function M(){i||(i=!0,t())}function o(){try{z.documentElement.doScroll("left")}catch(h){return void setTimeout(o,50)}M()}})(window); \ No newline at end of file +window._iconfont_svg_string_4723712='',(l=>{var h=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var v,a,t,z,i,p=function(h,c){c.parentNode.insertBefore(h,c)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}v=function(){var h,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4723712,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(h=document.body).firstChild?p(c,h.firstChild):h.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),v()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(t=v,z=l.document,i=!1,o(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,M())})}function M(){i||(i=!0,t())}function o(){try{z.documentElement.doScroll("left")}catch(h){return void setTimeout(o,50)}M()}})(window); \ No newline at end of file diff --git a/src/renderer/src/assets/iconfont/iconfont.json b/src/renderer/src/assets/iconfont/iconfont.json index 69393d7..cd72719 100644 --- a/src/renderer/src/assets/iconfont/iconfont.json +++ b/src/renderer/src/assets/iconfont/iconfont.json @@ -5,6 +5,13 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "5257347", + "name": "咽喉科-声音异常", + "font_class": "yanhouke-shengyinyichang", + "unicode": "e672", + "unicode_decimal": 58994 + }, { "icon_id": "7447571", "name": "认证-01", diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index 4c6ba15..5384fc7 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index 97d73a1..939562e 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 845de8c..5b34fc6 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/layout/components/Aside.vue b/src/renderer/src/layout/components/Aside.vue index d2188a0..7ef4218 100644 --- a/src/renderer/src/layout/components/Aside.vue +++ b/src/renderer/src/layout/components/Aside.vue @@ -16,6 +16,7 @@ 学校认证 未认证 +
  • 加入学校
  • 个人中心
  • 班级中心
  • 退出登录
  • @@ -60,7 +61,6 @@ import pkc from "../../../../../package.json" const { ipcRenderer } = window.electron || {} const dev_api = ref(import.meta.env.VITE_APP_BASE_API) const userStore = useUserStore() -console.log(userStore,'userStore') const router = useRouter() const currentRoute = ref('') const activeId = ref('/home') @@ -93,8 +93,14 @@ const headerMenus = [ const sideBottomMenu = [ { - name: '设置', + name: '算力', id: 4, + icon: 'icon-yanhouke-shengyinyichang', + path: '/hashrate' + }, + { + name: '设置', + id: 5, icon: 'icon-set', path: '/setting' }, diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js index 3e2ea8b..4e8fbb5 100644 --- a/src/renderer/src/router/index.js +++ b/src/renderer/src/router/index.js @@ -128,6 +128,12 @@ export const constantRoutes = [ name: 'examReport', meta: {title: '考试分析'} }, + { + path: '/hashrate', + component: () => import('@/views/hashrate/index.vue'), + name: 'hashrate', + meta: {title: '算力'} + }, { path: '/setting', component: () => import('@/views/setting/index.vue'), diff --git a/src/renderer/src/views/hashrate/index.vue b/src/renderer/src/views/hashrate/index.vue new file mode 100644 index 0000000..4a2150f --- /dev/null +++ b/src/renderer/src/views/hashrate/index.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file