Commit 9acca6af by 周志凯

切换服务器

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