Commit 9acca6af by 周志凯

切换服务器

1 parent f351ab49
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
import headerComp from '../../components/header' import headerComp from '../../components/header'
import backArrow from '../../static/header/backArrow.png' import backArrow from '../../static/header/backArrow.png'
import rArrow from "../../static/analysis/rArrow.png" import rArrow from "../../static/analysis/rArrow.png"
// import MobileMessage from 'mobile-message'
// import 'mobile-message/dist/message.css'
export default { export default {
onLoad(option) { onLoad(option) {
...@@ -50,19 +48,22 @@ ...@@ -50,19 +48,22 @@
className: 'dialog-btn', className: 'dialog-btn',
label: '确定', label: '确定',
callback: function(res, $body) { callback: function(res, $body) {
console.log(res, $body) this.clearCache();
// model.switchConnectType() // 调用swift 无参 model.switchConnectType() // 调用swift 无参
} }
}], '提示'); }], '提示');
}, },
logoutHandle() { logoutHandle() {
Object.keys(window.localStorage).forEach(item => { this.clearCache();
window.localStorage.removeItem(item)
})
uni.reLaunch({ uni.reLaunch({
url: '../login/login', url: '../login/login',
}); });
}, },
clearCache() {
Object.keys(window.localStorage).forEach(item => {
window.localStorage.removeItem(item)
})
}
}, },
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!