diff --git a/about.html b/about.html index ee6c2f5..746344e 100644 --- a/about.html +++ b/about.html @@ -306,7 +306,7 @@

Official Account

- WeChat QR + WeChat QR

Scan to follow Tech Share

diff --git a/images/bj/10.jpg b/images/bj/10.jpg deleted file mode 100644 index c52e0d0..0000000 Binary files a/images/bj/10.jpg and /dev/null differ diff --git a/images/bj/9.jpg b/images/bj/9.jpg deleted file mode 100644 index b700e91..0000000 Binary files a/images/bj/9.jpg and /dev/null differ diff --git a/images/mp-honesy.jpg b/images/mp-honesy.jpg new file mode 100644 index 0000000..a2368b6 Binary files /dev/null and b/images/mp-honesy.jpg differ diff --git a/index.html b/index.html index c64736b..09f5fac 100644 --- a/index.html +++ b/index.html @@ -263,7 +263,7 @@
扫描二维码
请使用微信扫一扫添加关注
- 微信二维码 diff --git a/js/about.js b/js/about.js index 4454d3b..7c39e3e 100644 --- a/js/about.js +++ b/js/about.js @@ -63,7 +63,23 @@ class AppCore { =========================== */ class I18nManager { constructor() { - this.lang = getStoredLanguage(); + // 获取当前请求参数有无 lang 参数 + try { + this.query = new URLSearchParams(window.location.search); + if (this.query.has('lang')) { + let lang = this.query.get('lang'); + if (lang === 'zh' || lang === 'en') { + this.lang = lang; + setStoredLanguage(lang); + } + } + } catch (e) { + console.error(e); + } + + if (!this.lang) { + this.lang = getStoredLanguage(); + } this.dict = { zh: { "nav.home": "首页",