diff --git a/src/components/FRuleEditor-copy/Debug/index.vue b/src/components/FRuleEditor-copy/Debug/index.vue index a1767adb..93593e59 100644 --- a/src/components/FRuleEditor-copy/Debug/index.vue +++ b/src/components/FRuleEditor-copy/Debug/index.vue @@ -73,11 +73,11 @@ import { PropType } from 'vue'; import { DeleteOutlined, PlusOutlined } from '@ant-design/icons-vue'; import { useProductStore } from '@/store/product'; -import { message } from 'jetlinks-ui-components'; import { useRuleEditorStore } from '@/store/ruleEditor'; import moment from 'moment'; import { getWebSocket } from '@/utils/websocket'; import { PropertyMetadata } from '@/views/device/Product/typings'; +import { onlyMessage } from '@/utils/comm'; const props = defineProps({ @@ -137,7 +137,7 @@ const runScript = () => { } if (!props.virtualRule?.script) { isBeginning.value = true; - message.warning('请编辑规则'); + onlyMessage('请编辑规则', 'warning'); return; } ws.value = getWebSocket(`virtual-property-debug-${props.id}-${new Date().getTime()}`, diff --git a/src/components/FRuleEditor/Debug/index.vue b/src/components/FRuleEditor/Debug/index.vue index f4c20867..f095a2bc 100644 --- a/src/components/FRuleEditor/Debug/index.vue +++ b/src/components/FRuleEditor/Debug/index.vue @@ -105,13 +105,12 @@ diff --git a/src/views/device/components/Metadata/Cat/index.vue b/src/views/device/components/Metadata/Cat/index.vue index 8dcdda33..3f390e7c 100644 --- a/src/views/device/components/Metadata/Cat/index.vue +++ b/src/views/device/components/Metadata/Cat/index.vue @@ -26,13 +26,13 @@ diff --git a/src/views/home/components/BootCardSmall.vue b/src/views/home/components/BootCardSmall.vue index abb0f874..49995b67 100644 --- a/src/views/home/components/BootCardSmall.vue +++ b/src/views/home/components/BootCardSmall.vue @@ -25,9 +25,9 @@ diff --git a/src/views/home/components/StepCard.vue b/src/views/home/components/StepCard.vue index 492fca09..b547c73e 100644 --- a/src/views/home/components/StepCard.vue +++ b/src/views/home/components/StepCard.vue @@ -26,9 +26,9 @@ diff --git a/src/views/media/Cascade/Channel/index.vue b/src/views/media/Cascade/Channel/index.vue index c82de34f..444b306c 100644 --- a/src/views/media/Cascade/Channel/index.vue +++ b/src/views/media/Cascade/Channel/index.vue @@ -156,8 +156,8 @@ diff --git a/src/views/notice/Config/Debug/index.vue b/src/views/notice/Config/Debug/index.vue index 4c6bce92..cb2f70b3 100644 --- a/src/views/notice/Config/Debug/index.vue +++ b/src/views/notice/Config/Debug/index.vue @@ -112,13 +112,13 @@ import type { TemplateFormData, IVariableDefinitions, } from '@/views/notice/Template/types'; -import { message } from 'jetlinks-ui-components'; import ToUser from '@/views/notice/Template/Detail/components/ToUser.vue'; import ToOrg from '@/views/notice/Template/Detail/components/ToOrg.vue'; import ToTag from '@/views/notice/Template/Detail/components/ToTag.vue'; import type { Rule } from 'ant-design-vue/es/form'; import { phoneRegEx } from '@/utils/validate'; +import { onlyMessage } from '@/utils/comm'; type Emits = { (e: 'update:visible', data: boolean): void; @@ -246,7 +246,7 @@ const handleOk = () => { ConfigApi.debug(params, props.data.id, formData.value.templateId) .then((res) => { if (res.success) { - message.success('操作成功'); + onlyMessage('操作成功'); handleCancel(); } }) diff --git a/src/views/notice/Config/Detail/index.vue b/src/views/notice/Config/Detail/index.vue index 68eb715b..fa1b1a34 100644 --- a/src/views/notice/Config/Detail/index.vue +++ b/src/views/notice/Config/Detail/index.vue @@ -323,9 +323,8 @@