update 优化代码
This commit is contained in:
parent
abc6e4f454
commit
b2219cabec
@ -196,6 +196,7 @@ import { categoryTree } from '@/api/workflow/category';
|
|||||||
import { CategoryTreeVO } from '@/api/workflow/category/types';
|
import { CategoryTreeVO } from '@/api/workflow/category/types';
|
||||||
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
|
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
|
||||||
import { UploadRequestOptions, TabsPaneContext } from 'element-plus';
|
import { UploadRequestOptions, TabsPaneContext } from 'element-plus';
|
||||||
|
import { ElMessageBoxOptions } from "element-plus/es/components/message-box/src/message-box.type";
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||||
|
|
||||||
@ -498,7 +499,7 @@ const handleCopyDef = async (row: FlowDefinitionVo) => {
|
|||||||
confirmButtonText: '确认',
|
confirmButtonText: '确认',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
} as ElMessageBoxOptions).then(() => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
copy(row.id).then((resp) => {
|
copy(row.id).then((resp) => {
|
||||||
if (resp.code === 200) {
|
if (resp.code === 200) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user