增加公共数据

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() {
return {
payTips: '付款完成后不要忘记抽红包哦',
goldBili: 0
goldBili: 0,
sysInfo:{}
};
},
actions: {
async init() {
this.sysInfo=uni.getSystemInfoSync()
const res = await getCommonConfig()
if (res) {
for (let i in $map) {