增加公共数据

This commit is contained in:
2025-01-15 14:15:15 +08:00
parent da473035d8
commit bc8d132192

View File

@@ -45,11 +45,13 @@ export const useCommonStore = defineStore("common", {
state() { state() {
return { return {
payTips: '付款完成后不要忘记抽红包哦', payTips: '付款完成后不要忘记抽红包哦',
goldBili: 0 goldBili: 0,
sysInfo:{}
}; };
}, },
actions: { actions: {
async init() { async init() {
this.sysInfo=uni.getSystemInfoSync()
const res = await getCommonConfig() const res = await getCommonConfig()
if (res) { if (res) {
for (let i in $map) { for (let i in $map) {