增加公共数据
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user