* zui: disable local cache for 20.1.

This commit is contained in:
sunhao
2024-05-23 14:22:13 +08:00
committed by caoyanyi
parent 361c7e011f
commit a601987c9e
+1 -1
View File
@@ -28,7 +28,6 @@
{
let config = window.config;
const isIndexPage = config.currentModule === 'index' && config.currentMethod === 'index';
const DEBUG = config.debug;
const currentCode = (window.frameElement ? window.frameElement.name : window.name).split('-')[1];
const isInAppTab = parent.window !== window;
@@ -476,6 +475,7 @@
if(options.modal) headers['X-Zui-Modal'] = 'true';
const requestMethod = (options.method || 'GET').toUpperCase();
if(!options.cache && options.cache !== false) options.cache = requestMethod === 'GET' ? (url + (url.includes('?') ? '&zin=' : '?zin=') + encodeURIComponent(selectors.join(','))) : false;
options.cache = false; // Disable local cache for 20.1.
const cacheKey = options.cache;
let cache;
const renderPageData = (data, onlyZinDebug) =>