From f614724d4cad5a4f5bfc2f6a446946e8c86a3fc9 Mon Sep 17 00:00:00 2001 From: lyt <1105290566@qq.com> Date: Wed, 3 Mar 2021 18:48:41 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.03.03:=E6=96=B0=E5=A2=9E=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=9B=BE=E6=A0=87=E8=87=AA=E5=8A=A8=E8=BD=BD=E5=85=A5?= =?UTF-8?q?=E7=95=8C=E9=9D=A2'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 32 ++++++++- src/utils/setIconfont.ts | 1 + src/views/fun/countup/index.vue | 2 +- src/views/pages/element/index.vue | 106 +++++++++++++++++++++++++++++ src/views/pages/iocnfont/index.vue | 106 +++++++++++++++++++++++++++++ 5 files changed, 245 insertions(+), 2 deletions(-) create mode 100644 src/views/pages/element/index.vue create mode 100644 src/views/pages/iocnfont/index.vue 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 @@