Procházet zdrojové kódy

修复流程编辑画布静态资源缓存

为发布审核、变动审核共用的 GooFlow 画布 CSS、运行脚本和 flowEdit.js 增加缓存版本,并禁止流程编辑页缓存,避免浏览器继续使用旧的 404 或损坏资源导致画布不显示。

Validation:\n- 当前生产 GooFlow.js、GooFlow.css、GooFunc.js、flowEdit.js 均 HTTP 200\n- 管理后台发布审核与变动审核画布 DOM 正常生成且无控制台错误
非繁 před 2 týdny
rodič
revize
bc698dc659

+ 5 - 4
WebRoot/web/subassembly/app/pc/10008/10026/1000810026_edit.jsp

@@ -1,10 +1,11 @@
 <html>
 
 	<head>
-		<link rel="stylesheet" type="text/css" href="/apps/space/plug-in/gooflow/css/GooFlow.css" />
+		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
+		<link rel="stylesheet" type="text/css" href="/apps/space/plug-in/gooflow/css/GooFlow.css?v=20261109-flow-canvas-2" />
 
-		<script src="/apps/space/plug-in/gooflow/GooFlow.js" type="text/javascript" charset="utf-8"></script>
-		<script src="/apps/space/plug-in/gooflow/GooFunc.js" type="text/javascript" charset="utf-8"></script>
+		<script src="/apps/space/plug-in/gooflow/GooFlow.js?v=20261109-flow-canvas-2" type="text/javascript" charset="utf-8"></script>
+		<script src="/apps/space/plug-in/gooflow/GooFunc.js?v=20261109-flow-canvas-2" type="text/javascript" charset="utf-8"></script>
 
 		<style>
 			#space-content {
@@ -227,7 +228,7 @@
 			flowSave = '@service{ name:`basic_flow_submit` }@',
 			releaseVersion = '@service{ name:`basic_flow_release_version`, params:`{mkid: "${mkid}"}` }@';
 	</script>
-	<script src="/js/flowEdit.js" type="text/javascript" charset="utf-8"></script>
+	<script src="/js/flowEdit.js?v=20261109-flow-canvas-2" type="text/javascript" charset="utf-8"></script>
 
 </html>