|
@@ -35,10 +35,7 @@
|
|
|
fit="contain"
|
|
|
/>
|
|
|
</div>
|
|
|
- <h2
|
|
|
- :class="['con-preview', data.left.fileList.length === 0 ? 'con-preview-big' : '']"
|
|
|
- v-if="data.left.con && data.left.fileList.length === 0"
|
|
|
- >
|
|
|
+ <h2 :class="['con-preview', data.left.fileList.length === 0 ? 'con-preview-big' : '']" v-if="data.left.con">
|
|
|
{{ data.left.con }}
|
|
|
</h2>
|
|
|
</div>
|
|
@@ -251,26 +248,26 @@ export default {
|
|
|
let writeTableData = localStorage.getItem('newEditTable');
|
|
|
if (writeTableData) {
|
|
|
_this.dataConfig = JSON.parse(writeTableData);
|
|
|
- if (_this.dataConfig) {
|
|
|
- _this.dataConfig.forEach((item) => {
|
|
|
- if (item.left.con.trim()) {
|
|
|
- let MethodName = 'tool-TextToVoiceFile';
|
|
|
- let datas = {
|
|
|
- text: item.left.con.trim(),
|
|
|
- };
|
|
|
- getLogin(MethodName, datas)
|
|
|
- .then((res) => {
|
|
|
- if (res.status === 1) {
|
|
|
- item.right.audio_file = res.file_id;
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- }
|
|
|
- });
|
|
|
- // _this.$nextTick(() => {
|
|
|
- // _this.initHanziwrite();
|
|
|
- // });
|
|
|
- }
|
|
|
+ // if (_this.dataConfig) {
|
|
|
+ // _this.dataConfig.forEach((item) => {
|
|
|
+ // if (item.left.con.trim()) {
|
|
|
+ // let MethodName = 'tool-TextToVoiceFile';
|
|
|
+ // let datas = {
|
|
|
+ // text: item.left.con.trim(),
|
|
|
+ // };
|
|
|
+ // getLogin(MethodName, datas)
|
|
|
+ // .then((res) => {
|
|
|
+ // if (res.status === 1) {
|
|
|
+ // item.right.audio_file = res.file_id;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch(() => {});
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // // _this.$nextTick(() => {
|
|
|
+ // // _this.initHanziwrite();
|
|
|
+ // // });
|
|
|
+ // }
|
|
|
setTimeout(() => {
|
|
|
_this.download2();
|
|
|
}, 2000);
|