From f021759a3e59913fc8b4707aaa2c7d9da49a2abe Mon Sep 17 00:00:00 2001 From: 26947 <12@1> Date: Sat, 1 Jun 2024 12:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=83=8F=E4=B8=8A=E5=B1=82=E6=8F=90=E5=8F=96ic?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 ++-- pages/activity/index.vue | 30 ++++++++++++++++++++---------- utils/icon/icon.js | 11 +++++++++++ 3 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 utils/icon/icon.js diff --git a/main.js b/main.js index eeb22bb..c6877c5 100644 --- a/main.js +++ b/main.js @@ -3,13 +3,13 @@ import App from './App' import store from './store' // store import { install } from './plugins' // plugins import './permission.js' // permission - +import iconConfig from './utils/icon/icon.js' // main.js import uviewPlus from 'uview-plus' export function createApp() { const app = createSSRApp(App) - + app.config.globalProperties.iconConfig = iconConfig app.use(uviewPlus) app.use(store) // app.use(uView) diff --git a/pages/activity/index.vue b/pages/activity/index.vue index 36ebe70..583708c 100644 --- a/pages/activity/index.vue +++ b/pages/activity/index.vue @@ -1,5 +1,6 @@