From 9222905ff817796cfb618c7e1fd5f7b768effcea Mon Sep 17 00:00:00 2001 From: 李林 <z1292839451@163.com> Date: 星期一, 21 八月 2023 09:14:03 +0800 Subject: [PATCH] 修改部分全局样式 --- src/main.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 6319eed..e996df0 100644 --- a/src/main.js +++ b/src/main.js @@ -17,6 +17,8 @@ import '@/icons' // icon import '@/permission' // permission control +import url from './api/url.js' + /** * If you don't want to use mock-server * you want to use MockJs for mock api @@ -30,11 +32,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