fix: 【应用】仅有使用权限高级编排自动保存问题

(cherry picked from commit b55524ad4e)
This commit is contained in:
wangdan-fit2cloud 2024-08-05 17:02:24 +08:00 committed by shaohuzhang1
parent 9927c67ba3
commit 73904d5407

View File

@ -114,6 +114,7 @@ import { MsgSuccess, MsgConfirm, MsgError } from '@/utils/message'
import { datetimeFormat } from '@/utils/time'
import useStore from '@/stores'
import { WorkFlowInstance } from '@/workflow/common/validate'
import { hasPermission } from '@/utils/permission'
const { user, application } = useStore()
const router = useRouter()
@ -250,7 +251,9 @@ const closeInterval = () => {
onMounted(() => {
getDetail()
//
initInterval()
if (hasPermission(`APPLICATION:MANAGE:${id}`, 'AND')) {
initInterval()
}
})
onBeforeUnmount(() => {