From 95fda13c28cb664a57336dd2e01d5b41ec4f717f Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期五, 25 八月 2023 12:57:19 +0800 Subject: [PATCH] 查看详情页 --- src/main.js | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 6319eed..0e3bf74 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,8 @@ import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n +import VueClipboard from 'vue-clipboard2' +Vue.use(VueClipboard) import '@/styles/index.scss' // global css @@ -14,8 +16,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,13 +39,20 @@ 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({ el: '#app', router, -- Gitblit v1.9.3