Commit b869a85c authored by Smile's avatar Smile Committed by wux

h5切换语言强制刷新页面

parent c30050e9
......@@ -220,6 +220,9 @@ export default {
this.getLeviteData()
uni.setStorageSync('locale', data)
this.$lang.setLang(data)
// #ifdef H5
window.location.reload();
// #endif
},
getLeviteData() {
let that = this
......
......@@ -237,6 +237,9 @@ export default {
uni.setStorageSync('locale', data)
uni.setLocale(data);
this.$lang.setLang(data)
// #ifdef H5
window.location.reload();
// #endif
},
getLeviteData() {
let that = this
......
......@@ -150,6 +150,9 @@ export default {
// this.getLeviteData()
uni.setStorageSync('locale', data)
this.$lang.setLang(data)
// #ifdef H5
window.location.reload();
// #endif
},
handleDownload() {
if (uni.getSystemInfoSync().platform === 'android') {
......
......@@ -425,6 +425,9 @@ export default {
uni.setStorageSync('locale', data)
uni.setLocale(data);
this.$lang.setLang(data)
// #ifdef H5
window.location.reload();
// #endif
this.getIdcard()
;(this.companyNotice = this.$lang.lang.site.unauth),
uni.showToast({
......
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