|
@@ -42,6 +42,7 @@ const showCoverUrl = computed(() => {
|
|
|
|
|
|
const tempPhoto = ref<string>();
|
|
|
const coverRef = ref<HTMLImageElement>()
|
|
|
+const audio = new Audio("/camera1.mp3")
|
|
|
const getCurrentScreen = (pos: Pos3D): Pos => {
|
|
|
const sdk = useSDK()
|
|
|
const data = sdk.scene.getScreenByPoint(pos)
|
|
@@ -84,6 +85,7 @@ const getCurrentScreens = (poss: Array<Pos3D>): Array<Pos> =>
|
|
|
poss.map(getCurrentScreen).filter(pos => !!pos);
|
|
|
|
|
|
const photo = genUseLoading(async () => {
|
|
|
+ await audio.play();
|
|
|
const sdk = useSDK()
|
|
|
const data = await screenshot(sdk)
|
|
|
tempPhoto.value = await api.getFile(data.rawUrl)
|