Browse Source

Merge branch 'main' of https://github.com/le5le-com/visualization-design

ananzhusen 2 years ago
parent
commit
829034be8f
2 changed files with 5 additions and 8 deletions
  1. 1 1
      package.json
  2. 4 7
      src/views/components/View.vue

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "version": "0.0.1",
   "scripts": {
     "start": "vite --open --port 7000",
-    "build": "vue-tsc --noEmit && vite build --base=https://assets.le5le.com/v/",
+    "build": "vue-tsc --noEmit && vite build --base=https://assets.le5lecdn.com/v/",
     "app": "vue-tsc --noEmit && vite build --mode base --base=/v/",
     "preview": "vite preview"
   },

+ 4 - 7
src/views/components/View.vue

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