utils/status.js
@@ -21,7 +21,9 @@ }) } export const redirectLogin = (path) => { let data=uni.getStorageSync('userList')?JSON.parse(uni.getStorageSync('userList')):[]; uni.clearStorageSync(); uni.setStorageSync("userList", JSON.stringify(data)) uni.reLaunch({ url: path || FailRedirect })