修改上传图片安全验证问题

This commit is contained in:
张成
2026-02-14 12:59:21 +08:00
parent 8688b6b82d
commit 64f0267457
54 changed files with 239 additions and 240 deletions

View File

@@ -5,7 +5,7 @@ export const setStorage = (key: string, data: any) => {
try {
Taro.setStorageSync(key, JSON.stringify(data))
} catch (error) {
console.error('保存数据失败:', error)
console.warn('保存数据失败:', error)
}
}
@@ -17,7 +17,7 @@ export const getStorage = <T>(key: string): T | null => {
}
return null
} catch (error) {
console.error('读取数据失败:', error)
console.warn('读取数据失败:', error)
return null
}
}
@@ -26,7 +26,7 @@ export const removeStorage = (key: string) => {
try {
Taro.removeStorageSync(key)
} catch (error) {
console.error('清除数据失败:', error)
console.warn('清除数据失败:', error)
}
}
@@ -34,6 +34,6 @@ export const clearAllStorage = () => {
try {
Taro.clearStorageSync()
} catch (error) {
console.error('清除所有数据失败:', error)
console.warn('清除所有数据失败:', error)
}
}