From 4f6bd238371acf78f8a5a21360b5408d5d13dd6c Mon Sep 17 00:00:00 2001 From: zhouyonggao <1971162852@qq.com> Date: Wed, 3 Dec 2025 14:58:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=8E=A7=E5=88=B6=E4=BB=A5=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在config.js中添加__ASSET_VERSION__全局变量 修改index.html中资源加载方式,通过添加版本号参数避免缓存问题 --- web/config.js | 1 + web/index.html | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/web/config.js b/web/config.js index ce3cd8a..cfa5e63 100644 --- a/web/config.js +++ b/web/config.js @@ -1 +1,2 @@ window.__API_BASE__ = 'http://ymtexporttool.cdlsxd.cn:8077' +window.__ASSET_VERSION__ = window.__ASSET_VERSION__ || String(Date.now()) diff --git a/web/index.html b/web/index.html index 903b493..610732a 100644 --- a/web/index.html +++ b/web/index.html @@ -4,8 +4,12 @@ MarketingSystemDataTool - - +
@@ -306,8 +310,12 @@
- - - +