no message
Former-commit-id: 6a3cc9d6f63a2f44ec4c89cec54c59143fa7b4cd Former-commit-id: 32b5e46554b922549a09af3024ff9dc12d4dc3a2 Former-commit-id: 73289664f73730518901751292cfaa09d9bf608e
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:autosize="{minRows: 2, maxRows: 4}"
|
:autosize="{minRows: 2, maxRows: 4}"
|
||||||
placeholder="请输入内容"
|
placeholder="请输入内容 然后点击保存按钮导出文本文档"
|
||||||
v-model="text">
|
v-model="text">
|
||||||
</el-input>
|
</el-input>
|
||||||
<div class="dd-mt dd-mb">
|
<div class="dd-mt dd-mb">
|
||||||
@@ -29,6 +29,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
exportTxt () {
|
exportTxt () {
|
||||||
|
// 校验是不是空
|
||||||
|
if (this.text === '') {
|
||||||
|
this.$message('虽然可以为空 但是出于体验不建议这样 还是写点东西吧')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// 导出
|
||||||
this.$export.txt({
|
this.$export.txt({
|
||||||
text: this.text,
|
text: this.text,
|
||||||
title: '文本'
|
title: '文本'
|
||||||
|
|||||||
Reference in New Issue
Block a user