|
|
@@ -21,7 +21,7 @@ import SupplierOrderPanel from '@/components/supplier/order-panel.vue'
|
|
21
|
21
|
import DistributorOrderPanel from '@/components/distributor/order-panel.vue'
|
|
22
|
22
|
import GuestView from '@/components/partner/guest-view.vue'
|
|
23
|
23
|
import { useUserStore } from '@/store/user'
|
|
24
|
|
-import { isDistributorRole, isSupplierRole } from '@/utils/partnerRole'
|
|
|
24
|
+import { isEffectiveDistributorRole, isEffectiveSupplierRole } from '@/utils/partnerRole'
|
|
25
|
25
|
import { refreshTabPanelOnShow } from '@/utils/tabPanel'
|
|
26
|
26
|
|
|
27
|
27
|
export default {
|
|
|
@@ -49,8 +49,8 @@ export default {
|
|
49
|
49
|
const userStore = useUserStore()
|
|
50
|
50
|
const roles = userStore.state.roles
|
|
51
|
51
|
this.isLoggedIn = userStore.isLoggedIn()
|
|
52
|
|
- this.isSupplier = isSupplierRole(roles)
|
|
53
|
|
- this.isDistributor = isDistributorRole(roles)
|
|
|
52
|
+ this.isSupplier = isEffectiveSupplierRole(roles)
|
|
|
53
|
+ this.isDistributor = isEffectiveDistributorRole(roles)
|
|
54
|
54
|
},
|
|
55
|
55
|
goLogin() {
|
|
56
|
56
|
uni.navigateTo({ url: '/pages/login/index' })
|