|
|
@@ -1,4 +1,7 @@
|
|
|
-import { Graph, Shape, Addon, DataUri } from '@antv/x6';
|
|
|
+
|
|
|
+// 为了加快主页的启动速度,延迟加载X6,使用全局的X6
|
|
|
+// import { Graph, Shape, Addon, DataUri } from '@antv/x6';
|
|
|
+
|
|
|
import QRCode from 'qrcode';
|
|
|
|
|
|
|
|
|
@@ -25,7 +28,7 @@ const textQrcodeToBase64 = text => {
|
|
|
});
|
|
|
};
|
|
|
export default function CreateJPEG(dom) {
|
|
|
- let graph = new Graph(
|
|
|
+ let graph = new X6.Graph(
|
|
|
{
|
|
|
container: dom,
|
|
|
width: 1,
|