unipush
Some checks failed
Uniapp 自动化打包 CI/CD / 打包 Uniapp 项目 (push) Has been cancelled

This commit is contained in:
2025-09-04 11:41:25 +08:00
parent da06ac8899
commit 8e23e63b3a
2 changed files with 19 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ export default {
this.$i18n.locale = this.vuex_locale; this.$i18n.locale = this.vuex_locale;
this.$u.api.lang({lang: this.vuex_locale}); this.$u.api.lang({lang: this.vuex_locale});
} }
//只有在基座运行的情况下才能打印看到
const clientInfo = plus.push.getClientInfo()
console.log(clientInfo)
// 设置底部导航栏角标 // 设置底部导航栏角标
// uni.setTabBarBadge({ // uni.setTabBarBadge({
// index: 0, // index: 0,

View File

@@ -28,7 +28,8 @@
"modules" : { "modules" : {
"Payment" : {}, "Payment" : {},
"Camera" : {}, "Camera" : {},
"Barcode" : {} "Barcode" : {},
"Push" : {}
}, },
"distribute" : { "distribute" : {
"android" : { "android" : {
@@ -72,6 +73,18 @@
"UniversalLinks" : "" "UniversalLinks" : ""
}, },
"appleiap" : {} "appleiap" : {}
},
"push" : {
"unipush" : {
"version" : "2",
"offline" : true,
"honor" : {},
"meizu" : {},
"mi" : {},
"vivo" : {},
"oppo" : {},
"hms" : {}
}
} }
}, },
"icons" : { "icons" : {