bill il y a 7 mois
Parent
commit
cc8753a8c6
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 2 2
      src/app.vue
  2. 1 0
      src/env/index.ts

+ 2 - 2
src/app.vue

@@ -48,10 +48,10 @@ import { ConfigProvider } from "ant-design-vue";
 import PwdModel from "@/layout/pwd.vue";
 import { config } from "./config";
 import { sdk, sdkLoaded } from "./sdk";
-
+// https://192.168.0.13:7173/index.html?caseId=509&sign=vGxCu4X5321fkWpZN6HnqYBiE6iI71DDWzdgjEaUKIh7vDWo3o5yhqHdHhGr4Z3W#/show
 const isStandard = ref(true);
 watchEffect(() => {
-  if (sdkLoaded.value) {
+  if (sdkLoaded.value && !params.testMap) {
     sdk.switchMapType(isStandard.value ? "satellite" : "standard");
   }
 });

+ 1 - 0
src/env/index.ts

@@ -58,6 +58,7 @@ export type Params = {
   fileUrl?: string
   sign?: string
   type?: string
+  testMap?: boolean
   title?: string
   m?: string
   share?: boolean,