diff --git a/src/views/Answer/questions/components/AnswerViewer.vue b/src/views/Answer/questions/components/AnswerViewer.vue index 56fa3fe0..87279e95 100644 --- a/src/views/Answer/questions/components/AnswerViewer.vue +++ b/src/views/Answer/questions/components/AnswerViewer.vue @@ -63,7 +63,7 @@ import { QUESTION_TYPE } from "@/views/planetDesign/Design/components/config/con import SceneGuidance from "./SceneGuidance.vue"; import { debounce } from 'lodash-es'; -const no3dPages = ["/survey/analyse/data-particulars", "/preview", "/home/market"]; +const has3dPages = ["/answer"]; export default defineComponent({ components: { @@ -110,7 +110,7 @@ export default defineComponent({ }, computed: { canUse3D(){ - return this.config.is_three_dimensions && !no3dPages.includes(this.$route.path); + return this.config.is_three_dimensions && has3dPages.includes(this.$route.path); }, surveyId() { return this.config.scene; diff --git a/src/views/Answer/questions/components/AnswerViewerMatrix.vue b/src/views/Answer/questions/components/AnswerViewerMatrix.vue index f07fe5d5..fb437d80 100644 --- a/src/views/Answer/questions/components/AnswerViewerMatrix.vue +++ b/src/views/Answer/questions/components/AnswerViewerMatrix.vue @@ -46,7 +46,7 @@ import { matrixInputValidate } from "./questionValidate"; import SceneGuidance from "./SceneGuidance.vue"; import { debounce } from 'lodash-es'; -const no3dPages = ["/survey/analyse/data-particulars", "/preview", "/home/market"]; +const has3dPages = ["/answer"]; export default defineComponent({ components: { @@ -104,7 +104,7 @@ export default defineComponent({ }, computed: { canUse3D(){ - return this.config.is_three_dimensions&&!no3dPages.includes(this.$route.path); + return this.config.is_three_dimensions&&has3dPages.includes(this.$route.path); }, surveyId() { return this.config.scene; diff --git a/src/views/Answer/questions/components/AnswerViewerPrefetch.vue b/src/views/Answer/questions/components/AnswerViewerPrefetch.vue index cfd389b6..028311f6 100644 --- a/src/views/Answer/questions/components/AnswerViewerPrefetch.vue +++ b/src/views/Answer/questions/components/AnswerViewerPrefetch.vue @@ -14,7 +14,7 @@ import BrowsingRecordApi from "./api.js"; import { buildShopDataDemo } from "@/views/planetDesign/Design/components/config/config3d.utils"; import SceneSurveyViewer from "@/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewer"; -const no3dPages = ["/survey/analyse/data-particulars", "/preview", "/home/market"]; +const has3dPages = ["/answer"]; export default { components: { @@ -41,7 +41,7 @@ export default { }, computed: { canUse3D(){ - return !no3dPages.includes(this.$route.path); + return has3dPages.includes(this.$route.path); }, }, watch: {