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 { 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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user