fix(仪表板): 嵌入式场景复制仪表板报错没有权限

This commit is contained in:
fit2cloud-chenyw
2025-11-16 15:06:34 +08:00
committed by fit2cloud-chenyw
parent 06813a2a9c
commit 3cce2faff6

View File

@@ -236,7 +236,8 @@ onMounted(async () => {
const createType = embeddedStore.createType || router.currentRoute.value.query.createType
const templateParams =
embeddedStore.templateParams || router.currentRoute.value.query.templateParams
const checkResult = await checkPer(resourceId)
const checkResourceId = opt && opt === 'copy' ? null : resourceId
const checkResult = await checkPer(checkResourceId as string)
if (!checkResult) {
return
}