简单版-需要先清缓存,再跳转
// 退出模块 清除缓存
document.querySelector('.quit').addEventListener('click', (e) => {
// 需要先清除,再跳转
localStorage.clear()
location.href = '../login/index.html'
})
简单版-需要先清缓存,再跳转
// 退出模块 清除缓存
document.querySelector('.quit').addEventListener('click', (e) => {
// 需要先清除,再跳转
localStorage.clear()
location.href = '../login/index.html'
})