Merge branch 'ljj' of http://xny.yj-3d.com:3000/taoge/new_project into ljx
This commit is contained in:
@ -5,7 +5,9 @@ import { ProjectTeamVO } from '@/api/project/projectTeam/types';
|
|||||||
import useUserStore from '@/store/modules/user';
|
import useUserStore from '@/store/modules/user';
|
||||||
export const getProjectTeam = async () => {
|
export const getProjectTeam = async () => {
|
||||||
const isPermission = useUserStore().permissions.some((item) => item == 'project:team:list');
|
const isPermission = useUserStore().permissions.some((item) => item == 'project:team:list');
|
||||||
if (!isPermission) return;
|
console.log(useUserStore().permissions);
|
||||||
|
|
||||||
|
if (!isPermission && useUserStore().permissions[0] != '*:*:*') return;
|
||||||
|
|
||||||
const { id } = $cache.local.getJSON('selectedProject');
|
const { id } = $cache.local.getJSON('selectedProject');
|
||||||
const res = await listProjectTeam({
|
const res = await listProjectTeam({
|
||||||
|
Reference in New Issue
Block a user