feat: message替换

This commit is contained in:
rd
2025-09-05 11:30:31 +08:00
parent 0461ac4e62
commit 57156792cc
58 changed files with 176 additions and 181 deletions

View File

@ -116,7 +116,7 @@
<script setup>
import { ref, reactive } from 'vue';
import { Modal } from 'ant-design-vue';
import { Modal, Tooltip, message } from 'ant-design-vue';
import DynamicForm from './components/DynamicForm.vue';
import {
executeWorkFlow,
@ -132,7 +132,6 @@ import { marked } from 'marked';
import DOMPurify from 'dompurify';
import menuFold from '@/assets/svg/menu-fold.svg';
import menuUnfold from '@/assets/svg/menu-unfold.svg';
import { Tooltip } from 'ant-design-vue';
import { formatNumberShow } from '@/utils/tools';
// import { WORKEXECUTE_STATUS } from '../AgentConstants.ts';
@ -216,17 +215,17 @@ const handleTop = async (id, sort, event) => {
//置顶
const topHistory = async (id, sort) => {
const { code, message } = await topWorkflowHistoryApi(id);
const { code, message: msg } = await topWorkflowHistoryApi(id);
if (code === 200) {
AMessage.success(message);
message.success(msg);
getWorkflowHistoryList();
}
};
//取消置顶
const canceltopHistory = async (id, sort) => {
const { code, message } = await cancelTopWorkflowHistoryApi(id);
const { code, message: msg } = await cancelTopWorkflowHistoryApi(id);
if (code === 200) {
AMessage.success(message);
message.success(msg);
getWorkflowHistoryList();
}
};