feat: updates

This commit is contained in:
qier222 2023-01-07 14:39:03 +08:00
parent 884f3df41a
commit c6c59b2cd9
No known key found for this signature in database
84 changed files with 3531 additions and 2616 deletions

View file

@ -35,6 +35,10 @@ export function resizeImage(
)
}
export function toHttps(url: string | undefined): string {
return url ? url.replace(/^http:/, 'https:') : ''
}
export const storage = {
get(key: string): object | [] | null {
const text = localStorage.getItem(key)