fix: bug 【创作中心】热区题 设计页面进选择场景 被访者答题界面 未显示场景
This commit is contained in:
@@ -114,6 +114,8 @@ export default defineComponent({
|
|||||||
return this.scene.shelves;
|
return this.scene.shelves;
|
||||||
},
|
},
|
||||||
shelf() {
|
shelf() {
|
||||||
|
// 无货架默认选择第一个,后续多货架版本可能会修改
|
||||||
|
if(!this.config.shelf) return this.shelves.find(x => true);
|
||||||
return this.shelves.find((x) => x.planetid == this.config.shelf);
|
return this.shelves.find((x) => x.planetid == this.config.shelf);
|
||||||
},
|
},
|
||||||
wares() {
|
wares() {
|
||||||
|
|||||||
@@ -280,15 +280,15 @@ export default {
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
scene: {
|
// scene: {
|
||||||
handler(val) {
|
// handler(val) {
|
||||||
if (this.scene && !this.configTemp.scene_information) {
|
// if (this.scene && !this.configTemp.scene_information) {
|
||||||
this.configTemp.scene_information = JSON.parse(
|
// this.configTemp.scene_information = JSON.parse(
|
||||||
JSON.stringify(val)
|
// JSON.stringify(val)
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
QUESTION_TYPE: () => QUESTION_TYPE,
|
QUESTION_TYPE: () => QUESTION_TYPE,
|
||||||
@@ -353,6 +353,13 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onUpdate() {
|
onUpdate() {
|
||||||
|
|
||||||
|
if (this.scene) {
|
||||||
|
this.configTemp.scene_information = JSON.parse(
|
||||||
|
JSON.stringify(this.scene)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this.$emit("update:config", this.configTemp);
|
this.$emit("update:config", this.configTemp);
|
||||||
this.$emit("changeConfig", this.configTemp);
|
this.$emit("changeConfig", this.configTemp);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user