|
@@ -32,7 +32,8 @@ import {
|
|
|
SceneStatus,
|
|
|
setting,
|
|
|
caseProject,
|
|
|
- getGuidePaths
|
|
|
+ getGuidePaths,
|
|
|
+ guidePaths
|
|
|
} from '@/store'
|
|
|
import { currentLayout, RoutesName } from '@/router'
|
|
|
|
|
@@ -440,8 +441,8 @@ export enum ScenePlayIngEnum {
|
|
|
}
|
|
|
export const isScenePlayIng = ref<ScenePlayIngEnum>(ScenePlayIngEnum.stop)
|
|
|
let pauseRecovery: () => void
|
|
|
-export const playSceneGuide = async (guide: Guide, changeIndexCallback?: (index: number) => void, forceFull = false) => {
|
|
|
- const paths = getGuidePaths(guide)
|
|
|
+export const playSceneGuide = async (guide: Guide, changeIndexCallback?: (index: number) => void, forceFull = false, paths = getGuidePaths(guide)) => {
|
|
|
+ console.log(guide, guidePaths.value)
|
|
|
if (isScenePlayIng.value) {
|
|
|
throw new Error('导览正在播放')
|
|
|
}
|