提交 5425d365 编写于 作者: DCloud_JSON's avatar DCloud_JSON 提交者: study夏羽

修复由多语言切换功能引起的隐私政策协议标题链接被重写的问题

上级 30f04e1c
......@@ -55,28 +55,8 @@
})
//更新 uni-starter.config
//agreements
let agreements = [{
"title": "用户服务协议", //协议名称
"url": "请填写用户服务协议链接" //对应的网络链接
},
{
"title": "隐私政策",
"url": "请填写隐私政策链接"
}
]
if(getApp().globalData.$i18n.locale == 'en'){
agreements = [{
"title": "User service agreement", //协议名称
"url": "请填写用户服务协议链接" //对应的网络链接
},
{
"title": "Privacy policy",
"url": "请填写隐私政策链接"
}
]
}
// console.log(getApp().globalData.config)
getApp().globalData.config.about.agreements = agreements
let agreementsTitle = this.$t('agreementsTitle').split(',')
let agreements = getApp().globalData.config.about.agreements agreements[0].title = agreementsTitle[0] agreements[1].title = agreementsTitle[1] getApp().globalData.config.about.agreements = agreements
}
setTimeout(()=>{
initLanguageAfter()
......
## 1.1.9(2021-09-16)
修复由多语言切换功能引起的隐私政策协议标题链接被重写的问题
## 1.1.8(2021-09-15)
更新数据表guestbook的schema中更新权限的配置
## 1.1.7(2021-09-14)
......
export default {
tabbar:'List,Grid,Mine',
tabbar:'List,Grid,Mine',
agreementsTitle:'User service agreement,Privacy policy',
common: {
wechatFriends: "friends",
wechatBbs: "bbs",
......
export default {
tabbar:'列表,宫格,我的',
tabbar:'列表,宫格,我的',
agreementsTitle:'用户服务协议,隐私政策',
common:{
wechatFriends: "微信好友",
wechatBbs: "微信朋友圈",
......
{
"id": "uni-starter",
"displayName": "uni-starter",
"version": "1.1.8",
"version": "1.1.9",
"description": "云端一体应用快速开发基本项目模版",
"keywords": [
"login",
......
......@@ -29,7 +29,7 @@ export default {
* 注意:黑名单与白名单模式二选一
*/
// "needLogin" : [
// {pattern:/^\/pages\/list.*/}", //支持正则表达式
// {pattern:/^\/pages\/list.*/}, //支持正则表达式
// "/uni_modules/uni-news-favorite/pages/uni-news-favorite/list",
// "/uni_modules/uni-feedback/pages/uni-feedback/add"
// ],
......@@ -41,7 +41,8 @@ export default {
"/pages/grid/grid",
"/pages/ucenter/ucenter",
"/pages/ucenter/guestbook/guestbook",
"/pages/ucenter/guestbook/guestbook"
"/pages/ucenter/about/about",
"/pages/ucenter/settings/settings"
],
/*
login:配置登陆类型与优先级
......@@ -62,11 +63,11 @@ export default {
"slogan": "云端一体应用快速开发模版",
//政策协议
"agreements": [{
"title": "用户服务协议", //协议名称
// "title": "为了多语言国际化请在 lang/en.js 和 lang/zh-Hans.js中配置",
"url": "请填写用户服务协议链接" //对应的网络链接
},
{
"title": "隐私政策",
// "title": "为了多语言国际化请在 lang/en.js 和 lang/zh-Hans.js中配置",
"url": "请填写隐私政策链接"
}
],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册