|
@@ -101,26 +101,23 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { Meta2d, Options } from '@meta2d/core';
|
|
import { Meta2d, Options } from '@meta2d/core';
|
|
-import { onMounted,onUnmounted} from 'vue';
|
|
|
|
|
|
+import { onMounted, onUnmounted } from 'vue';
|
|
import { registerBasicDiagram } from '@/services/register';
|
|
import { registerBasicDiagram } from '@/services/register';
|
|
|
|
|
|
-
|
|
|
|
const meta2dOptions: Options = {
|
|
const meta2dOptions: Options = {
|
|
- cdn: 'https://assets.le5le.com',
|
|
|
|
- rule:true
|
|
|
|
-}
|
|
|
|
|
|
+ cdn: 'https://assets.le5lecdn.com',
|
|
|
|
+ rule: true,
|
|
|
|
+};
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
new Meta2d('meta2d', meta2dOptions);
|
|
new Meta2d('meta2d', meta2dOptions);
|
|
registerBasicDiagram();
|
|
registerBasicDiagram();
|
|
});
|
|
});
|
|
|
|
|
|
-
|
|
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
if ((<any>globalThis).meta2d) {
|
|
if ((<any>globalThis).meta2d) {
|
|
(<any>globalThis).meta2d.destroy();
|
|
(<any>globalThis).meta2d.destroy();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
</script>
|
|
</script>
|
|
<style lang="postcss" scoped>
|
|
<style lang="postcss" scoped>
|
|
.meta2d {
|
|
.meta2d {
|