mirror of
				https://github.com/yangjian102621/geekai.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	feat: 更改 MJ 和 SD 菜单图标
This commit is contained in:
		
							
								
								
									
										
											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"
 | 
			
		||||
          >
 | 
			
		||||
            <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>
 | 
			
		||||
          </el-tooltip>
 | 
			
		||||
        </li>
 | 
			
		||||
@@ -42,8 +43,8 @@ const router = useRouter();
 | 
			
		||||
const logo = '/images/logo.png';
 | 
			
		||||
const navs = ref([
 | 
			
		||||
  {path: "/chat", icon: "wechat", title: "对话聊天"},
 | 
			
		||||
  {path: "/mj", icon: "image", title: "MJ 绘画"},
 | 
			
		||||
  {path: "/sd", icon: "palette", title: "SD 绘画"},
 | 
			
		||||
  {path: "/mj", icon_path: "/images/mj.png", title: "MJ 绘画"},
 | 
			
		||||
  {path: "/sd", icon_path: "/images/sd.png", title: "SD 绘画"},
 | 
			
		||||
  {path: "/apps", icon: "menu", title: "应用中心"},
 | 
			
		||||
  {path: "/images-wall", icon: "image-list", title: "作品展示"},
 | 
			
		||||
  {path: "/knowledge", icon: "book", title: "我的知识库"},
 | 
			
		||||
@@ -103,6 +104,10 @@ const changeNav = (item) => {
 | 
			
		||||
          align-items center
 | 
			
		||||
          cursor pointer
 | 
			
		||||
 | 
			
		||||
          .el-image {
 | 
			
		||||
            border-radius 10px
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          .iconfont {
 | 
			
		||||
            font-size 20px
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user