Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async componentDidMount() {
await AsyncStorage.clear()
await CacheManager.clearCache()
userStore.setStorage('accessToken')
userStore.setStorage('userInfo')
Toast.info('AsyncStorage cleared')
}
export function info(
content = '网络错误',
duration = 2.4,
onClose = Function.prototype,
mask = false
) {
Toast.info(content, duration, onClose, mask)
}