소스 검색

添加局域网访问

bill 2 년 전
부모
커밋
448d3cf03b
6개의 변경된 파일41개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 2
      package.json
  2. 1 0
      src/appConfig.ts
  3. 1 1
      src/components/edit-hot-item/styles-manage.vue
  4. 1 1
      src/hook/useGraphic.ts
  5. 33 2
      src/lang/zh-entry.ts
  6. 3 1
      src/views/drawGraphic/index.vue

+ 2 - 2
package.json

@@ -4,7 +4,7 @@
   "version": "0.0.0",
   "type": "module",
   "scripts": {
-    "dev": "vite",
+    "dev": "vite --host 0.0.0.0",
     "build": "vue-tsc && vite build",
     "preview": "vite preview"
   },
@@ -32,4 +32,4 @@
     "vite": "^4.2.0",
     "vue-tsc": "^1.2.0"
   }
-}
+}

+ 1 - 0
src/appConfig.ts

@@ -7,6 +7,7 @@ import {
   writeRouteMeta,
 } from "@/router/constant";
 
+console.log("?");
 // 路由注入
 const routerRef: RoutesRef = computed(() => {
   const list: any = writeRoutesRaw;

+ 1 - 1
src/components/edit-hot-item/styles-manage.vue

@@ -59,7 +59,7 @@
 import { HotStylesRaw, HotStyleAtom } from "@/store/hot";
 import { getResources } from "@/store/app";
 import { TemploraryID } from "@/store";
-import { ref, computed, defineEmits } from "vue";
+import { ref, computed } from "vue";
 import { LocalStyleAtom, toastErr } from "./constant";
 import { Cropper } from "@kankan/components/index";
 import { ui18n } from "@/lang";

+ 1 - 1
src/hook/useGraphic.ts

@@ -1,5 +1,5 @@
 import { ref } from "vue";
-import type { structureDraw } from "../graphic/index.js";
+import { structureDraw } from "../graphic/index.js";
 
 export const drawRef = ref<ReturnType<typeof structureDraw>>();
 

+ 33 - 2
src/lang/zh-entry.ts

@@ -1,4 +1,35 @@
 
 import { langMessageFactory } from './helper'
-const lang = langMessageFactory(import.meta.globEager('./zh/*.ts'))
-export default lang.zh
+import coord from "./zh/coord"
+import crop from "./zh/crop"
+import dataset from "./zh/dataset"
+import epoint from "./zh/epoint"
+import err from "./zh/err"
+import fire from "./zh/fire"
+import help from "./zh/help"
+import hotspot from "./zh/hotspot"
+import measure from "./zh/measure"
+import resStatus from "./zh/resStatus"
+import scene from "./zh/scene"
+import sys from "./zh/sys"
+import tool from "./zh/tool"
+import view from "./zh/view"
+// const lang = langMessageFactory(import.meta.globEager('./zh/*'))
+
+export default {
+  coord,
+  crop,
+  dataset,
+  epoint,
+  err,
+  fire,
+  help,
+  hotspot,
+  measure,
+  resStatus,
+  scene,
+  sys,
+  tool,
+  view,
+}
+

+ 3 - 1
src/views/drawGraphic/index.vue

@@ -7,7 +7,8 @@
         @click="activeMenu = menu.key"
         :class="{ active: menu.key === activeMenu }"
       >
-        {{ menu.text }}
+
+            {{ menu.text }}
       </div>
     </div>
     <div class="canvas-layout">
@@ -42,6 +43,7 @@ onMounted(() => {
     if (drawRef.value) {
       drawRef.value.control.currentUI = activeMenu.value as any;
       drawRef.value.control.updateEventNameForSelectUI();
+
     }
   });
 });