|
@@ -47,9 +47,16 @@
|
|
|
const userStore = useUserStore();
|
|
|
const iframeRef = ref();
|
|
|
|
|
|
- // 租户管理员角色
|
|
|
- const isTenantAdmin = computed(() => {
|
|
|
- return userStore.getRoleList.includes(RoleEnum.ADWEB_CHANNEL_ADMIN);
|
|
|
+ // 管理员角色
|
|
|
+ const isAdmin = computed(() => {
|
|
|
+ return (
|
|
|
+ userStore.getRoleList.includes(RoleEnum.ADWEB_CHANNEL_ADMIN) ||
|
|
|
+ userStore.getRoleList.includes(RoleEnum.ADMIN) ||
|
|
|
+ userStore.getRoleList.includes(RoleEnum.ADWEB_ADMIN) ||
|
|
|
+ userStore.getRoleList.includes(RoleEnum.SEO_ADMIN) ||
|
|
|
+ userStore.getRoleList.includes(RoleEnum.ADWEB_SITE_MANAGER) ||
|
|
|
+ userStore.getRoleList.includes(RoleEnum.ADWEB_SEO_MANAGER)
|
|
|
+ );
|
|
|
});
|
|
|
|
|
|
// 是否是苏豪纺织的租户
|
|
@@ -74,7 +81,7 @@
|
|
|
isSohoeb2b.value = res.name.includes('苏豪纺织集团');
|
|
|
|
|
|
// 针对租户管理员,并且是苏豪纺织的租户
|
|
|
- if (isTenantAdmin.value && isSohoeb2b.value) {
|
|
|
+ if (isAdmin.value && isSohoeb2b.value) {
|
|
|
isShowSelect.value = true;
|
|
|
}
|
|
|
});
|