From 4f89998c9296518963f6586c22bb97aa31a69925 Mon Sep 17 00:00:00 2001 From: ltx <19304474232@163.com> Date: Wed, 25 Mar 2026 03:10:46 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++-- src/utils/build.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 40d597f..6c0acfa 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ VITE_PORT = 3030 VITE_OPEN = true # 打包是否开启 cdn(源文件 utils/build.ts),可自行修改 -VITE_OPEN_CDN = true +VITE_OPEN_CDN = false # public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可 -#VITE_PUBLIC_PATH = /vue-next-admin-preview/ \ No newline at end of file +VITE_PUBLIC_PATH = 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202603250222/' \ No newline at end of file diff --git a/src/utils/build.ts b/src/utils/build.ts index 6cb53d5..730c96d 100644 --- a/src/utils/build.ts +++ b/src/utils/build.ts @@ -11,7 +11,7 @@ import importToCDN from 'vite-plugin-cdn-import'; export const buildConfig = { cdn() { return importToCDN({ - prodUrl: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202603250222', + prodUrl: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202603250222/', modules: [ // autoComplete('vue'), // autoComplete('axios'),