ls-pro-common 3.1.39 → 3.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common.js +1 -1
- package/dist/common.min.js +1 -1
- package/es/http/mdmRequest.d.ts +1 -0
- package/es/http/mdmRequest.js +8 -0
- package/lib/http/mdmRequest.d.ts +1 -0
- package/lib/http/mdmRequest.js +8 -0
- package/package.json +1 -1
package/es/http/mdmRequest.d.ts
CHANGED
package/es/http/mdmRequest.js
CHANGED
|
@@ -381,4 +381,12 @@ export var getMdmData = function getMdmData(type) {
|
|
|
381
381
|
throw new Error("".concat(type, " \u4E0D\u5B58\u5728"));
|
|
382
382
|
}
|
|
383
383
|
return fn(params);
|
|
384
|
+
};
|
|
385
|
+
export var clearMdmCache = function clearMdmCache() {
|
|
386
|
+
// 清空所有 mdm- 开头的缓存
|
|
387
|
+
Object.keys(sessionStorage).forEach(function (key) {
|
|
388
|
+
if (key.startsWith('mdm-')) {
|
|
389
|
+
sessionStorage.removeItem(key);
|
|
390
|
+
}
|
|
391
|
+
});
|
|
384
392
|
};
|
package/lib/http/mdmRequest.d.ts
CHANGED
package/lib/http/mdmRequest.js
CHANGED
|
@@ -381,4 +381,12 @@ export var getMdmData = function getMdmData(type) {
|
|
|
381
381
|
throw new Error("".concat(type, " \u4E0D\u5B58\u5728"));
|
|
382
382
|
}
|
|
383
383
|
return fn(params);
|
|
384
|
+
};
|
|
385
|
+
export var clearMdmCache = function clearMdmCache() {
|
|
386
|
+
// 清空所有 mdm- 开头的缓存
|
|
387
|
+
Object.keys(sessionStorage).forEach(function (key) {
|
|
388
|
+
if (key.startsWith('mdm-')) {
|
|
389
|
+
sessionStorage.removeItem(key);
|
|
390
|
+
}
|
|
391
|
+
});
|
|
384
392
|
};
|