|
@@ -14,7 +14,8 @@ const state = {
|
|
id: '' // 用户ID
|
|
id: '' // 用户ID
|
|
},
|
|
},
|
|
orderType: [], // 订单类型
|
|
orderType: [], // 订单类型
|
|
- inviteId: '' // 邀请人ID,分享链接携带
|
|
|
|
|
|
+ inviteId: '', // 邀请人ID,分享链接携带
|
|
|
|
+ isInit: false // 获取用户信息接口、订单类型接口加锁
|
|
}
|
|
}
|
|
|
|
|
|
const getters = {
|
|
const getters = {
|
|
@@ -26,6 +27,9 @@ const getters = {
|
|
},
|
|
},
|
|
inviteId (state) {
|
|
inviteId (state) {
|
|
return state.inviteId
|
|
return state.inviteId
|
|
|
|
+ },
|
|
|
|
+ isInit (state) {
|
|
|
|
+ return state.isInit
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -70,6 +74,9 @@ const mutations = {
|
|
},
|
|
},
|
|
UPDATE_INVITE_ID (state, value) {
|
|
UPDATE_INVITE_ID (state, value) {
|
|
state.inviteId = value
|
|
state.inviteId = value
|
|
|
|
+ },
|
|
|
|
+ UPDATE_ISINIT (state, value) {
|
|
|
|
+ state.isInit = value
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|