From 73904d54072fd8eb749de2843a81da41b0714aa6 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 5 Aug 2024 17:02:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E5=BA=94=E7=94=A8=E3=80=91?= =?UTF-8?q?=E4=BB=85=E6=9C=89=E4=BD=BF=E7=94=A8=E6=9D=83=E9=99=90=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E7=BC=96=E6=8E=92=E8=87=AA=E5=8A=A8=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit b55524ad4e796faf04550133a4bde5d9ac6f7939) --- ui/src/views/application-workflow/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index 5df23964a..d883bc912 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -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(() => {