|
@@ -14,7 +14,9 @@
|
|
|
@change="changePreset"
|
|
@change="changePreset"
|
|
|
v-if="isShowFence"
|
|
v-if="isShowFence"
|
|
|
/>
|
|
/>
|
|
|
- <a :href="previewUrl" target="_blank" style="margin-left: 20px" v-if="isShowFence">平台预览</a>
|
|
|
|
|
|
|
+ <a :href="previewUrl" target="_blank" style="margin-left: 20px" v-if="previewUrl"
|
|
|
|
|
+ >平台相机预览</a
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
@@ -41,6 +43,7 @@
|
|
|
const { appPCUrl } = useGlobSetting();
|
|
const { appPCUrl } = useGlobSetting();
|
|
|
|
|
|
|
|
const previewUrl = computed(() => {
|
|
const previewUrl = computed(() => {
|
|
|
|
|
+ if (!detail.value?.workshopId || !detail.value?.code) return '';
|
|
|
return appPCUrl + `#/shop?id=${detail.value?.workshopId}&cameraId=${detail.value?.code!}`;
|
|
return appPCUrl + `#/shop?id=${detail.value?.workshopId}&cameraId=${detail.value?.code!}`;
|
|
|
});
|
|
});
|
|
|
|
|
|