fix: 插件页面加载加 ?t= 缓存破坏 + app.js v0706
This commit is contained in:
@@ -79,6 +79,6 @@
|
|||||||
<script src="./static/js/chart.js?v=0603"></script>
|
<script src="./static/js/chart.js?v=0603"></script>
|
||||||
|
|
||||||
<!-- 🟢 2. 再加载主逻辑 -->
|
<!-- 🟢 2. 再加载主逻辑 -->
|
||||||
<script src="./static/js/app.js?v=0705"></script>
|
<script src="./static/js/app.js?v=0706"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ async function loadPluginPage(pluginName) {
|
|||||||
if(!_pluginPagesCache) await fetchPluginPages();
|
if(!_pluginPagesCache) await fetchPluginPages();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var resp = await fetch('/plugin/'+pluginName, {credentials:'include'});
|
var resp = await fetch('/plugin/'+pluginName+'?t='+Date.now(), {credentials:'include'});
|
||||||
if(!resp.ok) throw new Error(resp.status);
|
if(!resp.ok) throw new Error(resp.status);
|
||||||
var html = await resp.text();
|
var html = await resp.text();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user