From a496620c8343ed5aa34047792c7e07ad8d13fa6f Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 21 Jun 2024 10:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=A4=A7=E5=B1=8F=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main.js b/src/main.js index 2986f2e..2aaf4f7 100644 --- a/src/main.js +++ b/src/main.js @@ -6,11 +6,14 @@ import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import axios from 'axios' -Vue.use(ElementUI); - window.axios = axios + +Vue.use(ElementUI); window.$glob = {} -new Vue({ - router, - render: (h) => h(App) -}).$mount('#app') +import('./utils/fetch.js').then(() => { + new Vue({ + router, + render: (h) => h(App) + }).$mount('#app') +}) +