Просмотр исходного кода

Merge branch 'dev' of http://192.168.0.115:3000/bill/traffic-laser into dev

xzw 2 месяцев назад
Родитель
Сommit
446906468f
4 измененных файлов с 9 добавлено и 0 удалено
  1. 1 0
      src/hook/useParams.ts
  2. 6 0
      src/sdk/laser/index.ts
  3. 1 0
      src/sdk/types/sdk.ts
  4. 1 0
      src/views/scene/container.vue

+ 1 - 0
src/hook/useParams.ts

@@ -8,6 +8,7 @@ export type Params = {
   lang?: langNameEum;
   test?: boolean;
   console?: string;
+  temp?: boolean;
   token?: string;
   realPath?: string;
   entry?: string;

+ 6 - 0
src/sdk/laser/index.ts

@@ -7,6 +7,12 @@ let staticPrefix;
 export const setStaticPrefix = (ver) => (staticPrefix = ver);
 
 export const laserFactory = (props: LaserSDKProps, store?: Store): LaserSDK => {
+  console.log("enter", {
+    dom: props.sceneEl,
+    number: props.num,
+    staticPrefix,
+    ...props,
+  });
   const laser = enter({
     dom: props.sceneEl,
     number: props.num,

+ 1 - 0
src/sdk/types/sdk.ts

@@ -397,6 +397,7 @@ export type LaserSDKProps = {
   webSite: string;
   isDebug?: boolean;
   getFileUrl: (url: string) => Promise<string>;
+  isTemp: boolean;
   axios: any;
   basePath: string;
 };

+ 1 - 0
src/views/scene/container.vue

@@ -45,6 +45,7 @@ onMounted(async () => {
       store: store,
       isDebug: useParams().test,
       getFileUrl: api.getFile,
+      isTemp: useParams().temp,
       webSite: "",
       axios: null,
       basePath: currentApp.basePath,