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

h5切换语言强制刷新页面

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