fix: 【应用】仅有使用权限高级编排自动保存问题
This commit is contained in:
parent
097b5dd3ec
commit
b55524ad4e
@ -114,6 +114,7 @@ import { MsgSuccess, MsgConfirm, MsgError } from '@/utils/message'
|
|||||||
import { datetimeFormat } from '@/utils/time'
|
import { datetimeFormat } from '@/utils/time'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
import { WorkFlowInstance } from '@/workflow/common/validate'
|
import { WorkFlowInstance } from '@/workflow/common/validate'
|
||||||
|
import { hasPermission } from '@/utils/permission'
|
||||||
|
|
||||||
const { user, application } = useStore()
|
const { user, application } = useStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -250,7 +251,9 @@ const closeInterval = () => {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getDetail()
|
getDetail()
|
||||||
// 初始化定时任务
|
// 初始化定时任务
|
||||||
initInterval()
|
if (hasPermission(`APPLICATION:MANAGE:${id}`, 'AND')) {
|
||||||
|
initInterval()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user