Commit 967be997 authored by wildfirecode13's avatar wildfirecode13

1

parent c13d8494
export declare const getLocalCacheTb: (key: string) => boolean;
export declare const setLocalCacheTb: (key: string) => any;
export declare const removeLocalCacheTb: (key: string) => any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setLocalCacheTb = exports.getLocalCacheTb = void 0;
exports.removeLocalCacheTb = exports.setLocalCacheTb = exports.getLocalCacheTb = void 0;
var teddi_1 = require("teddi");
exports.getLocalCacheTb = function (key) {
if (my) {
......@@ -18,3 +18,13 @@ exports.setLocalCacheTb = function (key) {
}
return teddi_1.setLocalCache(key);
};
exports.removeLocalCacheTb = function (key) {
if (my) {
return my.setStorageSync({
key: key,
data: "0"
});
;
}
return teddi_1.removeLocalCache(key);
};
......@@ -10,7 +10,7 @@
"integrity": "sha1-Au3BavFiCvn1dKU254E/wlE55Hs="
},
"teddi": {
"version": "git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git#004b955bbe5aa504770141fcaf28f2211afcd5c7",
"version": "git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git#55eb8b9fc0364c4e6dce0b5e206e2b2a080d1195",
"from": "git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git",
"requires": {
"svgaplayerweb": "^2.3.1"
......
import { getLocalCache, setLocalCache } from "teddi";
import { getLocalCache, removeLocalCache, setLocalCache } from "teddi";
export const getLocalCacheTb = (key:string) => {
if(my) {
......@@ -16,3 +16,13 @@ export const setLocalCacheTb = (key:string) => {
}
return setLocalCache(key)
}
export const removeLocalCacheTb = (key:string) => {
if(my) {
return my.setStorageSync({
key: key,
data: "0"
});;
}
return removeLocalCache(key)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment