Commit 187155ec by jml0128

fix

1 parent 74499e6a
......@@ -63,6 +63,7 @@ export default {
title: String,
text: String,
resText: String,
customText: String,
maxLength: {
type: Number,
default: 20
......@@ -125,6 +126,14 @@ export default {
document.execCommand('paste', false, text);
}
});
},
watch: {
customText: {
handler(n) {
this.localText = n;
},
immediate: true
}
}
};
</script>
......
......@@ -432,22 +432,26 @@ export default {
this.Bi.getTopicInfo(),
this.Bi.getGroupInfo(),
this.Bi.getTemplateList()
]).then(
([
baseInfo,
fixedInfo,
topicInfo,
topicMixinInfo,
tempaletList = { data: { data: [] } }
]) => {
this.dealBaseInfo(baseInfo.data.data[0] || {});
this.dealFixedInfo(fixedInfo.data.data || []);
this.dealChoice(topicInfo.data.data || []);
this.dealChoiceMixin(topicMixinInfo.data.data || []);
this.coverList = tempaletList.data.data || [];
])
.then(
([
baseInfo,
fixedInfo,
topicInfo,
topicMixinInfo,
tempaletList = { data: { data: [] } }
]) => {
this.dealBaseInfo(baseInfo.data.data[0] || {});
this.dealFixedInfo(fixedInfo.data.data || []);
this.dealChoice(topicInfo.data.data || []);
this.dealChoiceMixin(topicMixinInfo.data.data || []);
this.coverList = tempaletList.data.data || [];
window.status = '1';
}
)
.catch(() => {
window.status = '1';
}
);
});
}
};
</script>
......
......@@ -473,22 +473,26 @@ export default {
this.Bi.getTopicInfo(),
this.Bi.getGroupInfo(),
this.Bi.getTemplateList()
]).then(
([
baseInfo,
fixedInfo,
topicInfo,
topicMixinInfo,
tempaletList = { data: { data: [] } }
]) => {
this.dealBaseInfo(baseInfo.data.data[0] || {});
this.dealFixedInfo(fixedInfo.data.data || []);
this.dealChoice(topicInfo.data.data || []);
this.dealChoiceMixin(topicMixinInfo.data.data || []);
this.coverList = tempaletList.data.data || [];
])
.then(
([
baseInfo,
fixedInfo,
topicInfo,
topicMixinInfo,
tempaletList = { data: { data: [] } }
]) => {
this.dealBaseInfo(baseInfo.data.data[0] || {});
this.dealFixedInfo(fixedInfo.data.data || []);
this.dealChoice(topicInfo.data.data || []);
this.dealChoiceMixin(topicMixinInfo.data.data || []);
this.coverList = tempaletList.data.data || [];
window.status = '1';
}
)
.catch(() => {
window.status = '1';
}
);
});
}
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!