@kingt/kt-tool
Advanced tools
+1
-1
| { | ||
| "name": "@kingt/kt-tool", | ||
| "version": "1.6.7", | ||
| "version": "1.6.8", | ||
| "description": "初始化公共方法,引用测试,_kt_引入", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -45,3 +45,3 @@ // export const tool = { | ||
| /** | ||
| * 清除以 'kt-init' 开头的 localStorage 数据 | ||
| * 清除以 'kt-int' 开头的 localStorage 数据 | ||
| * @returns 无返回值 | ||
@@ -51,3 +51,3 @@ */ | ||
| Object.keys(localStorage).forEach((key) => { | ||
| if (key.startsWith('kt-init')) { | ||
| if (key.startsWith('kt-int')) { | ||
| localStorage.removeItem(key) | ||
@@ -101,3 +101,3 @@ } | ||
| /** | ||
| * 清除以 'kt-init' 开头的 sessionStorage 数据 | ||
| * 清除以 'kt-int' 开头的 sessionStorage 数据 | ||
| * @returns 无返回值 | ||
@@ -107,3 +107,3 @@ */ | ||
| Object.keys(sessionStorage).forEach((key) => { | ||
| if (key.startsWith('kt-init')) { | ||
| if (key.startsWith('kt-int')) { | ||
| sessionStorage.removeItem(key) | ||
@@ -110,0 +110,0 @@ } |
1055103
0