From 0e11d74e0e2d664d6104636a75558c31ead2448c Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期四, 01 二月 2024 15:04:41 +0800 Subject: [PATCH] 样式调整 --- src/main.js | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index b5688cd..84fe861 100644 --- a/src/main.js +++ b/src/main.js @@ -2,9 +2,10 @@ // (runtime-only or standalone) has been set in webpack.base.conf with an alias. // 鐩存帴浠巆ore-js寮曞叆鍏ㄥ眬鐨刾olyfill -import 'core-js/fn/promise'; +import 'core-js/fn/promise' import Vue from 'vue' +import Element from 'element-ui' import App from './App' import router from './router' // 璺敱琛� @@ -15,6 +16,12 @@ import Req from './utils/jun_httpInstall' // http 璇锋眰 import fn from './utils/g_fn_install' +import 'element-ui/lib/theme-chalk/index.css' +import 'element-ui/lib/theme-chalk/display.css' +import '@/icons' // icon + +Vue.prototype.isTestView = config.isTestView + Vue.config.productionTip = false Vue.config.devtools = config.devtools @@ -23,7 +30,11 @@ require('./mock.js') } Vue.config.productionTip = false -// Vue.use(element) +// 瑙e喅elementui涓嬫媺鎼滅储妗嗗湪ios涓婂敜涓嶈捣杞敭鐩� +import ElementUI from '@/utils/element-ui-preprocessing' + +Vue.use(Element) +Vue.use(ElementUI) Vue.use(Axios) Vue.use(filter) Vue.use(Req) -- Gitblit v1.8.0