|
|
@@ -1,6 +1,6 @@
|
|
|
import { mapGetters,mapActions } from 'vuex'
|
|
|
import { pageTo } from '@/utils/util.js'
|
|
|
-import { getUser, wxLoginFn } from '@/utils/auth'
|
|
|
+import { getShopInfo, wxLoginFn } from '@/utils/auth'
|
|
|
import { getDictionaries } from '@/api/mini'
|
|
|
import { hasTokenAutoLogin } from '@/api/common'
|
|
|
import constant from '@/constant'
|
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
let currentMiniOpenId = res.data.currentMiniOpenId || ''
|
|
|
uni.setStorageSync('currentMiniOpenId', currentMiniOpenId)
|
|
|
if (!this.$util.isEmpty(token)) {
|
|
|
- getUser(true)
|
|
|
+ getShopInfo(true)
|
|
|
this.setUserShopAll()
|
|
|
}
|
|
|
if (this.init) {
|
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
that.$store.commit('setMyShopInfo', { ...res.data.shop, ...res.data })
|
|
|
})
|
|
|
that.$store.commit('setLoginInfo', { ...subRes.data.admin, ...subRes.data })
|
|
|
- getUser(true).then(res => {
|
|
|
+ getShopInfo(true).then(res => {
|
|
|
uni.setNavigationBarTitle({ title: res.name })
|
|
|
})
|
|
|
that.setUserShopAll()
|
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
that.$store.commit('setMyShopInfo', { ...res.data.shop, ...res.data })
|
|
|
})
|
|
|
that.$store.commit('setLoginInfo', { ...subRes.data.admin, ...subRes.data })
|
|
|
- getUser(true).then(res => {
|
|
|
+ getShopInfo(true).then(res => {
|
|
|
uni.setNavigationBarTitle({ title: res.name })
|
|
|
})
|
|
|
that.setUserShopAll()
|