|
@@ -1,7 +1,7 @@
|
|
|
import store from '@/store'
|
|
import store from '@/store'
|
|
|
import UTIL from '@/utils/util'
|
|
import UTIL from '@/utils/util'
|
|
|
import { getStaffApi, getUserApi } from '@/api/common'
|
|
import { getStaffApi, getUserApi } from '@/api/common'
|
|
|
-import { postWxCode } from '@/api/mini'
|
|
|
|
|
|
|
+import { postWxCode,getDictionaries } from '@/api/mini'
|
|
|
|
|
|
|
|
//获取商城端用户信息
|
|
//获取商城端用户信息
|
|
|
export async function getShopUser(update) {
|
|
export async function getShopUser(update) {
|
|
@@ -77,6 +77,13 @@ export async function wxLoginFn(update) {
|
|
|
store.commit('setLoginInfo', subRes.data.user)
|
|
store.commit('setLoginInfo', subRes.data.user)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ getDictionaries({ token: subRes.data.token }).then(res => {
|
|
|
|
|
+ if (UTIL.isEmpty(res)) {
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ store.commit('setDictionariesInfo', { ...res.data.dict, ...res.data })
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
//启动更新逻辑 shish 2020.5.18
|
|
//启动更新逻辑 shish 2020.5.18
|
|
|
if (subRes.data.update == 1) {
|
|
if (subRes.data.update == 1) {
|
|
|
|
|
|