Skip to content

Commit

Permalink
[*] 修改 GuestSideBar 首页项图标
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Sep 19, 2024
1 parent d6e2c76 commit a733ba9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ bun dev
- [Naive UI](https://www.naiveui.com/)
- [v-clipboard](https://github.com/euvl/v-clipboard)
- [TaliwindCSS](https://tailwindcss.com/)
- [Emoji.json (UNPKG)](https://unpkg.com/[email protected]/emoji.json)
- [twemoji](https://github.com/twitter/twemoji)
- [twemoji-amazing](https://github.com/SebastianAigner/twemoji-amazing)
- [xicons](https://www.xicons.org/)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"@vicons/ionicons4": "^0.12.0",
"@vicons/ionicons5": "^0.12.0",
"@vicons/material": "^0.12.0",
"@vicons/fa": "^0.12.0",
"@vicons/fluent": "^0.12.0",
"axios": "^1.7.7",
"highlight.js": "^11.10.0",
"js-cookie": "^3.0.5",
Expand All @@ -36,7 +38,6 @@
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/qs": "^6.9.16",
"@vicons/fa": "^0.12.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.20",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ a:hover {
color: #63e2b7;
}

ul, ol {
ul,
ol {
margin-left: 1rem;
}
7 changes: 4 additions & 3 deletions src/components/GuestSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
import { NIcon, NLayoutSider, NMenu } from 'naive-ui'
import { h, ref } from 'vue'
import { LogInOutline, MailOpenOutline, PlanetOutline } from '@vicons/ionicons5'
import { CompassOutline, LogInOutline, MailOpenOutline } from '@vicons/ionicons5'
import { KeyReset20Regular } from '@vicons/fluent'
// 手机状态下收缩菜单栏
const collapsed = ref(true)
Expand All @@ -44,7 +45,7 @@ const menuOptions = [
path: '/',
label: '首页',
key: 'MainPage',
icon: renderIcon(LogInOutline)
icon: renderIcon(CompassOutline)
},
{
path: '/auth/login',
Expand All @@ -62,7 +63,7 @@ const menuOptions = [
path: '/auth/resetPassword',
label: '重置密码',
key: 'ResetPassword',
icon: renderIcon(PlanetOutline)
icon: renderIcon(KeyReset20Regular)
}
]
</script>
Expand Down

0 comments on commit a733ba9

Please sign in to comment.