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

This commit is contained in:
fit2cloud-chenyw
2025-11-16 15:06:34 +08:00
committed by fit2cloud-chenyw
parent 46768fd7ea
commit 91610e51af

View File

@@ -205,7 +205,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
}