|
@@ -25,9 +25,8 @@
|
|
|
getCameraAlgoPresetList,
|
|
getCameraAlgoPresetList,
|
|
|
choosePreset,
|
|
choosePreset,
|
|
|
getAppCameraAlgoPreset,
|
|
getAppCameraAlgoPreset,
|
|
|
- CameraAlgoPresetResp,
|
|
|
|
|
} from '@/api/camera/camera-preview';
|
|
} from '@/api/camera/camera-preview';
|
|
|
- import { computed, onMounted, ref, watch } from 'vue';
|
|
|
|
|
|
|
+ import { computed, ref, watch } from 'vue';
|
|
|
import useCameraDetailStore from '../../store/useCameraDetailStore';
|
|
import useCameraDetailStore from '../../store/useCameraDetailStore';
|
|
|
import { storeToRefs } from 'pinia';
|
|
import { storeToRefs } from 'pinia';
|
|
|
import { OptionType } from './constants';
|
|
import { OptionType } from './constants';
|
|
@@ -42,8 +41,13 @@
|
|
|
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!}`;
|
|
|
|
|
|
|
+ const firstSceneId = detail.value?.sceneTemplateList[0]?.sceneId;
|
|
|
|
|
+ if (!detail.value?.workshopId || !detail.value?.code || !firstSceneId) return '';
|
|
|
|
|
+ return (
|
|
|
|
|
+ appPCUrl +
|
|
|
|
|
+ `#/shop?id=${detail.value?.workshopId}&cameraId=${detail.value
|
|
|
|
|
+ ?.code!}&sceneId=${firstSceneId}`
|
|
|
|
|
+ );
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
watch(
|
|
watch(
|