From e51a8bda1e15ad30654c5f90f5591f240a5ec3de Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 22 八月 2023 18:02:09 +0800 Subject: [PATCH] modified: .env.development new file: src/api/home.js new file: src/assets/404_images/bg.png modified: src/main.js modified: src/views/home/index.vue modified: src/views/standardLibrary/index.vue --- src/main.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 6319eed..beb2705 100644 --- a/src/main.js +++ b/src/main.js @@ -14,8 +14,15 @@ import store from './store' import router from './router' +//寮曞叆echarts +import echarts from 'echarts' +Vue.prototype.$echarts = echarts + + import '@/icons' // icon import '@/permission' // permission control + +import url from './api/url.js' /** * If you don't want to use mock-server @@ -30,11 +37,17 @@ mockXHR() } +Vue.prototype.HaveJson = (val) => { + return JSON.parse(JSON.stringify(val)) +} + // set ElementUI lang to EN Vue.use(ElementUI, { locale }) // 濡傛灉鎯宠涓枃鐗� element-ui锛屾寜濡備笅鏂瑰紡澹版槑 // Vue.use(ElementUI) +Vue.use(url); + Vue.config.productionTip = false new Vue({ -- Gitblit v1.9.3