diff --git a/src/router/index.ts b/src/router/index.ts index d907461b..8bc0ba5f 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -384,7 +384,7 @@ export const dynamicRoutes = [ name: 'filtering', component: () => import('/@/views/pages/filtering/index.vue'), meta: { - title: '过滤筛选组件', + title: '过滤筛选', isLink: '', isHide: false, isKeepAlive: true, @@ -394,6 +394,36 @@ export const dynamicRoutes = [ icon: 'el-icon-sell' } }, + { + path: '/pages/iocnfont', + name: 'iocnfont', + component: () => import('/@/views/pages/iocnfont/index.vue'), + meta: { + title: 'iconfont 字体图标', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'el-icon-present' + } + }, + { + path: '/pages/element', + name: 'element', + component: () => import('/@/views/pages/element/index.vue'), + meta: { + title: 'element 字体图标', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'el-icon-platform-eleme' + } + }, ] }, { diff --git a/src/utils/setIconfont.ts b/src/utils/setIconfont.ts index bbf455b3..8eddd47a 100644 --- a/src/utils/setIconfont.ts +++ b/src/utils/setIconfont.ts @@ -10,6 +10,7 @@ export function setCssCdn() { let link = document.createElement('link') link.rel = 'stylesheet' link.href = v + link.crossOrigin = 'anonymous' document.getElementsByTagName('head')[0].appendChild(link) }) } diff --git a/src/views/fun/countup/index.vue b/src/views/fun/countup/index.vue index 582e6822..3c95accb 100644 --- a/src/views/fun/countup/index.vue +++ b/src/views/fun/countup/index.vue @@ -1,7 +1,7 @@