fix: 3D提示页控制

This commit is contained in:
wam
2022-12-15 21:44:44 +08:00
parent f19a7f4896
commit afdc7517ca
3 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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: {