This commit is contained in:
2020-12-04 15:38:33 +08:00
parent fe39b1244e
commit 617735df20
7 changed files with 12 additions and 5 deletions

View File

@@ -30,6 +30,9 @@ export async function previewCover(file: any): Promise<string> {
*/
export function saveValue(key: string, value: any): boolean{
if(key == "token"){
saveValue("time",new Date().getTime())
}
if(typeof value == 'object'){
value = JSON.stringify(value)
}