|
@@ -1,5 +1,3 @@
|
|
|
-import { MessagePlugin } from "tdesign-vue-next";
|
|
|
-
|
|
|
export const isStraightFlow = (nodes: any[], edges: any[]) => {
|
|
|
let isSerial = false;
|
|
|
let message = "非标准直线型流程图";
|
|
@@ -61,7 +59,7 @@ export const useSnakeLayoutHook = (
|
|
|
) => {
|
|
|
let [isStraight, msg] = isStraightFlow(nodes, edges);
|
|
|
if (!isStraight) {
|
|
|
- MessagePlugin.warning(msg);
|
|
|
+ ElMessage.warning(msg);
|
|
|
return nodes; //这里要返回nodes, 因为外面要用到
|
|
|
}
|
|
|
|