diff --git a/src/router/index.ts b/src/router/index.ts index b4be6591..7406708d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -440,6 +440,21 @@ export const dynamicRoutes = [ icon: 'el-icon-platform-eleme' } }, + { + path: '/pages/awesome', + name: 'awesome', + component: () => import('/@/views/pages/awesome/index.vue'), + meta: { + title: 'awesome 字体图标', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'el-icon-set-up' + } + }, ] }, { diff --git a/src/utils/setIconfont.ts b/src/utils/setIconfont.ts index 9cddd564..54add661 100644 --- a/src/utils/setIconfont.ts +++ b/src/utils/setIconfont.ts @@ -1,5 +1,8 @@ // 字体图标 url -const cssCdnUrlList: Array = ['//at.alicdn.com/t/font_2298093_xviws8fx96h.css'] +const cssCdnUrlList: Array = [ + '//at.alicdn.com/t/font_2298093_xviws8fx96h.css', + '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' +] // 第三方 js url const jsCdnUrlList: Array = [] diff --git a/src/views/layout/navBars/breadcrumb/user.vue b/src/views/layout/navBars/breadcrumb/user.vue index 0cf41e0d..daff49ee 100644 --- a/src/views/layout/navBars/breadcrumb/user.vue +++ b/src/views/layout/navBars/breadcrumb/user.vue @@ -6,14 +6,17 @@
-
- +
+ - + + +
{ searchRef.value.openSearch(); }; - // 我的消息点击 - const onUserNewsPopoverClick = () => { - state.isShowUserNewsPopover = !state.isShowUserNewsPopover; - }; return { setFlexAutoStyle, getUserInfos, @@ -148,7 +147,6 @@ export default { onHandleCommandClick, onScreenfullClick, onSearchClick, - onUserNewsPopoverClick, searchRef, ...toRefs(state), }; diff --git a/src/views/pages/awesome/index.vue b/src/views/pages/awesome/index.vue new file mode 100644 index 00000000..874df7bb --- /dev/null +++ b/src/views/pages/awesome/index.vue @@ -0,0 +1,112 @@ + + + + + \ No newline at end of file diff --git a/src/views/pages/element/index.vue b/src/views/pages/element/index.vue index 36e8cd29..0f611439 100644 --- a/src/views/pages/element/index.vue +++ b/src/views/pages/element/index.vue @@ -1,6 +1,6 @@