Browse Source

update 优化代码

疯狂的狮子Li 1 tháng trước cách đây
mục cha
commit
b2219cabec
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/workflow/processDefinition/index.vue

+ 2 - 1
src/views/workflow/processDefinition/index.vue

@@ -196,6 +196,7 @@ import { categoryTree } from '@/api/workflow/category';
 import { CategoryTreeVO } from '@/api/workflow/category/types';
 import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
 import { UploadRequestOptions, TabsPaneContext } from 'element-plus';
+import { ElMessageBoxOptions } from "element-plus/es/components/message-box/src/message-box.type";
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 
@@ -498,7 +499,7 @@ const handleCopyDef = async (row: FlowDefinitionVo) => {
     confirmButtonText: '确认',
     cancelButtonText: '取消',
     type: 'warning'
-  }).then(() => {
+  } as ElMessageBoxOptions).then(() => {
     loading.value = true;
     copy(row.id).then((resp) => {
       if (resp.code === 200) {