16 changed files with 82 additions and 40 deletions
			
			
		- 
					4mock/asyncRoutes.ts
 - 
					6package.json
 - 
					16pnpm-lock.yaml
 - 
					2public/serverConfig.json
 - 
					14src/components/ReIcon/src/offlineIcon.ts
 - 
					32src/layout/components/setting/index.vue
 - 
					8src/layout/components/sidebar/horizontal.vue
 - 
					9src/layout/components/sidebar/mixNav.vue
 - 
					2src/layout/components/sidebar/sidebarItem.vue
 - 
					11src/layout/components/sidebar/vertical.vue
 - 
					2src/layout/index.vue
 - 
					3src/layout/types.ts
 - 
					3src/router/modules/error.ts
 - 
					3src/router/modules/home.ts
 - 
					3src/router/modules/remaining.ts
 - 
					4src/router/utils.ts
 
@ -0,0 +1,14 @@ | 
				
			|||
import { addIcon } from "@iconify/vue/dist/offline"; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 这里存放本地图标,在 src/layout/index.vue 文件中加载,避免在首启动加载 | 
				
			|||
 */ | 
				
			|||
 | 
				
			|||
// 本地菜单图标,后端在路由的icon中返回对应的图标字符串并且前端在此处使用addIcon添加即可渲染菜单图标
 | 
				
			|||
import HomeFilled from "@iconify-icons/ep/home-filled"; | 
				
			|||
import InformationLine from "@iconify-icons/ri/information-line"; | 
				
			|||
import Lollipop from "@iconify-icons/ep/lollipop"; | 
				
			|||
 | 
				
			|||
addIcon("homeFilled", HomeFilled); | 
				
			|||
addIcon("informationLine", InformationLine); | 
				
			|||
addIcon("lollipop", Lollipop); | 
				
			|||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue