mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
feat: 更改 MJ 和 SD 菜单图标
This commit is contained in:
parent
ce14cd02e4
commit
7124b9a36c
BIN
web/public/images/mj.png
Normal file
BIN
web/public/images/mj.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
web/public/images/sd.png
Normal file
BIN
web/public/images/sd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@ -15,7 +15,8 @@
|
|||||||
placement="right"
|
placement="right"
|
||||||
>
|
>
|
||||||
<a @click="changeNav(item)" :class="item.path === curPath?'active':''">
|
<a @click="changeNav(item)" :class="item.path === curPath?'active':''">
|
||||||
<i :class="'iconfont icon-'+item.icon"></i>
|
<el-image :src="item.icon_path" :width="20" v-if="item.icon_path"/>
|
||||||
|
<i :class="'iconfont icon-'+item.icon" v-else></i>
|
||||||
</a>
|
</a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</li>
|
</li>
|
||||||
@ -42,8 +43,8 @@ const router = useRouter();
|
|||||||
const logo = '/images/logo.png';
|
const logo = '/images/logo.png';
|
||||||
const navs = ref([
|
const navs = ref([
|
||||||
{path: "/chat", icon: "wechat", title: "对话聊天"},
|
{path: "/chat", icon: "wechat", title: "对话聊天"},
|
||||||
{path: "/mj", icon: "image", title: "MJ 绘画"},
|
{path: "/mj", icon_path: "/images/mj.png", title: "MJ 绘画"},
|
||||||
{path: "/sd", icon: "palette", title: "SD 绘画"},
|
{path: "/sd", icon_path: "/images/sd.png", title: "SD 绘画"},
|
||||||
{path: "/apps", icon: "menu", title: "应用中心"},
|
{path: "/apps", icon: "menu", title: "应用中心"},
|
||||||
{path: "/images-wall", icon: "image-list", title: "作品展示"},
|
{path: "/images-wall", icon: "image-list", title: "作品展示"},
|
||||||
{path: "/knowledge", icon: "book", title: "我的知识库"},
|
{path: "/knowledge", icon: "book", title: "我的知识库"},
|
||||||
@ -103,6 +104,10 @@ const changeNav = (item) => {
|
|||||||
align-items center
|
align-items center
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
|
||||||
|
.el-image {
|
||||||
|
border-radius 10px
|
||||||
|
}
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
font-size 20px
|
font-size 20px
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user