fix: 3D提示页控制
This commit is contained in:
@@ -63,7 +63,7 @@ import { QUESTION_TYPE } from "@/views/planetDesign/Design/components/config/con
|
|||||||
import SceneGuidance from "./SceneGuidance.vue";
|
import SceneGuidance from "./SceneGuidance.vue";
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
|
|
||||||
const no3dPages = ["/survey/analyse/data-particulars", "/preview", "/home/market"];
|
const has3dPages = ["/answer"];
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
@@ -110,7 +110,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
canUse3D(){
|
canUse3D(){
|
||||||
return this.config.is_three_dimensions && !no3dPages.includes(this.$route.path);
|
return this.config.is_three_dimensions && has3dPages.includes(this.$route.path);
|
||||||
},
|
},
|
||||||
surveyId() {
|
surveyId() {
|
||||||
return this.config.scene;
|
return this.config.scene;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import { matrixInputValidate } from "./questionValidate";
|
|||||||
import SceneGuidance from "./SceneGuidance.vue";
|
import SceneGuidance from "./SceneGuidance.vue";
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
|
|
||||||
const no3dPages = ["/survey/analyse/data-particulars", "/preview", "/home/market"];
|
const has3dPages = ["/answer"];
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
@@ -104,7 +104,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
canUse3D(){
|
canUse3D(){
|
||||||
return this.config.is_three_dimensions&&!no3dPages.includes(this.$route.path);
|
return this.config.is_three_dimensions&&has3dPages.includes(this.$route.path);
|
||||||
},
|
},
|
||||||
surveyId() {
|
surveyId() {
|
||||||
return this.config.scene;
|
return this.config.scene;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import BrowsingRecordApi from "./api.js";
|
|||||||
import { buildShopDataDemo } from "@/views/planetDesign/Design/components/config/config3d.utils";
|
import { buildShopDataDemo } from "@/views/planetDesign/Design/components/config/config3d.utils";
|
||||||
import SceneSurveyViewer from "@/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewer";
|
import SceneSurveyViewer from "@/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewer";
|
||||||
|
|
||||||
const no3dPages = ["/survey/analyse/data-particulars", "/preview", "/home/market"];
|
const has3dPages = ["/answer"];
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -41,7 +41,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
canUse3D(){
|
canUse3D(){
|
||||||
return !no3dPages.includes(this.$route.path);
|
return has3dPages.includes(this.$route.path);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in New Issue
Block a user