|
@@ -8,10 +8,12 @@
|
|
|
<UiTags />
|
|
|
<Information />
|
|
|
<BottomControl />
|
|
|
+ <Camera />
|
|
|
</div>
|
|
|
<!-- </template> -->
|
|
|
</div>
|
|
|
<DesignOption />
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -22,6 +24,9 @@ import Information from "@/components/Information";
|
|
|
import BottomControl from "@/components/Controls/BottomControl";
|
|
|
import Password from "@/components/shared/Password.vue";
|
|
|
import LoadingLogo from "@/components/shared/Loading.vue";
|
|
|
+
|
|
|
+import Camera from "@/components/Camera/index.vue";
|
|
|
+
|
|
|
import { createApp } from "@/app";
|
|
|
import { listenMessage } from "@/utils/messageHandler";
|
|
|
import { Dialog } from "@/global_components";
|
|
@@ -34,11 +39,8 @@ const { t } = useI18n({ useScope: "global" });
|
|
|
|
|
|
onMounted(async () => {
|
|
|
if (browser.isMobile()) {
|
|
|
- window.location.href = window.location.href.replace(
|
|
|
- "spg.html",
|
|
|
- "smg.html"
|
|
|
- );
|
|
|
- console.warn('重跳后::',window.location.href);
|
|
|
+ window.location.href = window.location.href.replace("spg.html", "smg.html");
|
|
|
+ console.warn("重跳后::", window.location.href);
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
@@ -261,6 +263,10 @@ onMounted(() => {
|
|
|
app.store.on("flooruser", (floor) =>
|
|
|
store.commit("scene/loadFloorData", floor)
|
|
|
); //4.7以后新楼层方式
|
|
|
+
|
|
|
+ app.Camera.on("SecurityCamera.watch", (data) => {
|
|
|
+ console.error("SecurityCamera.watch", data);
|
|
|
+ });
|
|
|
app.render();
|
|
|
});
|
|
|
</script>
|