|
@@ -173,14 +173,13 @@ export async function checkMenuClickPermission(path?: string): Promise<{
|
|
|
if (entertainmentBusinessLicense) {
|
|
if (entertainmentBusinessLicense) {
|
|
|
allowedPaths.push(ENTERTAINMENT_LICENSE_PATH);
|
|
allowedPaths.push(ENTERTAINMENT_LICENSE_PATH);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- const canClick = true;
|
|
|
|
|
|
|
+ let canClick = true;
|
|
|
// 检查当前路径是否在允许访问的列表中
|
|
// 检查当前路径是否在允许访问的列表中
|
|
|
if (path) {
|
|
if (path) {
|
|
|
- const canClick = allowedPaths.includes(path);
|
|
|
|
|
|
|
+ const canClickstatus = allowedPaths.includes(path);
|
|
|
|
|
|
|
|
// 如果不可点击,根据权限状态显示相应的提示信息
|
|
// 如果不可点击,根据权限状态显示相应的提示信息
|
|
|
- if (!canClick) {
|
|
|
|
|
|
|
+ if (!canClickstatus) {
|
|
|
const messages: string[] = [];
|
|
const messages: string[] = [];
|
|
|
|
|
|
|
|
if (contractManagement) {
|
|
if (contractManagement) {
|
|
@@ -200,6 +199,7 @@ export async function checkMenuClickPermission(path?: string): Promise<{
|
|
|
dangerouslyUseHTMLString: true
|
|
dangerouslyUseHTMLString: true
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ canClick = false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|