From 95f7046e49fb8070ff649a2b44fb2b1e9fd95f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com> Date: Thu, 29 Aug 2024 09:04:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BA=BF=E4=B8=8A=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/upgrade.ts | 2 +- .../dvadmin_form_flow/install-render.js | 46 ------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 web/src/views/plugins/dvadmin_form_flow/install-render.js diff --git a/web/src/utils/upgrade.ts b/web/src/utils/upgrade.ts index a571863..f21c778 100644 --- a/web/src/utils/upgrade.ts +++ b/web/src/utils/upgrade.ts @@ -29,7 +29,7 @@ export async function checkVersion(){ return } // 获取线上版本号 t为时间戳,防止缓存 - await axios.get(`/${VERSION_FILE_NAME}?t=${new Date().getTime()}`).then(res => { + await axios.get(`${import.meta.env.VITE_PUBLIC_PATH}${VERSION_FILE_NAME}?t=${new Date().getTime()}`).then(res => { const {status, data} = res || {} if (status === 200) { // 获取当前版本号 diff --git a/web/src/views/plugins/dvadmin_form_flow/install-render.js b/web/src/views/plugins/dvadmin_form_flow/install-render.js deleted file mode 100644 index bd79ece..0000000 --- a/web/src/views/plugins/dvadmin_form_flow/install-render.js +++ /dev/null @@ -1,46 +0,0 @@ -import axios from 'axios' - -import VFormRender from '@/components/form-render/index.vue' -import ContainerItems from '@/components/form-render/container-item/index' - -import {registerIcon} from '@/utils/el-icons' -import 'virtual:svg-icons-register' -import '@/iconfont/iconfont.css' - -import { installI18n } from '@/utils/i18n' -import { loadExtension } from '@/extension/extension-loader' - -VFormRender.install = function (app) { - installI18n(app) - loadExtension(app) - - app.use(ContainerItems) - registerIcon(app) - app.component(VFormRender.name, VFormRender) -} - -const components = [ - VFormRender -] - -const install = (app) => { - installI18n(app) - loadExtension(app) - - app.use(ContainerItems) - registerIcon(app) - components.forEach(component => { - app.component(component.name, component) - }) - - window.axios = axios -} - -if (typeof window !== 'undefined' && window.Vue) { /* scriptʽʱֵaxios */ - //window.axios = axios -} - -export default { - install, - VFormRender -}