From eec883215df1e0f2ec973e91a4f0b43016b73758 Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Wed, 13 Mar 2024 09:27:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device-manage/device/components/CloudCommand.vue | 4 ++++ src/views/device-manage/device/index.vue | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/device-manage/device/components/CloudCommand.vue b/src/views/device-manage/device/components/CloudCommand.vue index c2d6f3ea..f901c310 100644 --- a/src/views/device-manage/device/components/CloudCommand.vue +++ b/src/views/device-manage/device/components/CloudCommand.vue @@ -9,6 +9,7 @@ import { useModal } from '@/components/Modal' import { getCloudCommandLogs, getMessageContent } from '@/api/device-manage/device/cloud-command' import type { Device } from '@/api/device-manage/device/types' import { CloudCommandType } from '@/api/device-manage/device/types' +import { usePermission } from '@/hooks/web/usePermission' defineProps<{ device?: Device }>() @@ -65,6 +66,8 @@ const [register, { reload }] = useTable({ inset: true, canResize: false, }) + +const { hasPermission } = usePermission()