Commit 20f946b2 by crushh

update: dist

parent 59a3238f
......@@ -105,6 +105,9 @@ export default {
},
computed: {
computedImg() {
if (![1, 2, 3, 4].includes(this.templateId)) {
return '';
}
const bcImg = {
1: require(`@/assets/img/template${this.templateId}/mould_rule_page.png`),
2: require(`@/assets/img/template${this.templateId}/mould_prize_page.png`),
......
......@@ -217,7 +217,12 @@ export default {
watch: {
templateId(val) {
if (!val) return;
this.boxList = this['template' + val + 'Box'];
if ([1, 2, 3, 4].includes(val)) {
this.boxList = this['template' + val + 'Box'];
} else {
this.boxList = this.template1Box;
}
console.log('template' + val + 'Box');
},
basicData: {
deep: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment