diff --git a/App.vue b/App.vue index 542cb5cdd9736820f436c6b69a361d23201fd390..3f2967949bb4603204e26c677ae27792b2230883 100644 --- a/App.vue +++ b/App.vue @@ -65,7 +65,7 @@ "url": "请填写隐私政策链接" } ] - if(getApp().$i18n.locale == 'en'){ + if(getApp().globalData.$i18n.locale == 'en'){ agreements = [{ "title": "User service agreement", //协议名称 "url": "请填写用户服务协议链接" //对应的网络链接 diff --git a/changelog.md b/changelog.md index 79f6bbccba7126984c7ecb3f4ba8244c5c5957c0..8ad0d5792d711772e199b7201458c778c73ce883 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## 1.1.2(2021-08-30) +修复在微信小程序下切换语言报`locale`不存在的问题 ## 1.1.1(2021-08-30) - 解决3.2.6以下版本hbuilderx,编译的项目报`uni.setLocale`不存在的问题 ## 1.1.0(2021-08-27) diff --git a/package.json b/package.json index afb911b4fe76c3bdc113a56fb924f3f65d872544..f1fbca53a71422e0aa56461dbffc696f2a75dbfd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "id": "uni-starter", "displayName": "uni-starter", - "version": "1.1.1", + "version": "1.1.2", "description": "云端一体应用快速开发基本项目模版", "keywords": [ "login", diff --git a/pages/ucenter/settings/settings.vue b/pages/ucenter/settings/settings.vue index f414684b415461aee4188d1a309d9ee8821d412f..f5374c1d1b5f970c75dc78381ec8cbb213e9748b 100644 --- a/pages/ucenter/settings/settings.vue +++ b/pages/ucenter/settings/settings.vue @@ -258,7 +258,7 @@ language = globalData.locale = 'en' } uni.setStorageSync('CURRENT_LANG', language) - getApp().$i18n.locale = language + getApp().globalData.$i18n.locale = language this.currentLanguage = res.tapIndex?'简体中文':'English' if(uni.setLocale){ uni.setLocale(language) diff --git a/uni_modules_tools/copy/manifest.json b/uni_modules_tools/copy/manifest.json index f4b3f42e2e016e8af5c74c005b851314e1bbc0d3..48a249e2edd1a87f70facc1e0d63834fb339d38b 100644 --- a/uni_modules_tools/copy/manifest.json +++ b/uni_modules_tools/copy/manifest.json @@ -160,7 +160,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "", + "appid" : "wx81dbb061d2258234", "setting" : { "urlCheck" : false, "es6" : false