Commit df646f64 authored by 罗超's avatar 罗超

1

parent faf7b5f5
...@@ -100,7 +100,6 @@ export default { ...@@ -100,7 +100,6 @@ export default {
let res = await login(msg); let res = await login(msg);
if (res) { if (res) {
res.Data.Account = msg.Account; res.Data.Account = msg.Account;
// uni.clearStorage();
try { try {
uni.setStorageSync("userInfo", res.Data); uni.setStorageSync("userInfo", res.Data);
} catch (e) { } catch (e) {
...@@ -158,7 +157,6 @@ export default { ...@@ -158,7 +157,6 @@ export default {
setTimeout(() => { setTimeout(() => {
let data = uni.getStorageSync("userInfo"); let data = uni.getStorageSync("userInfo");
if (data) { if (data) {
console.log(147, data);
that.jumpPage(); that.jumpPage();
} }
}, 1000); }, 1000);
...@@ -173,6 +171,9 @@ export default { ...@@ -173,6 +171,9 @@ export default {
...methods, ...methods,
}; };
}, },
onLoad(){
uni.clearStorage();
}
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment