no message
Former-commit-id: 8968b85709aa05e693a16a6082df9cf32cfda00f Former-commit-id: f6db98d53841b81d8f7c7cd53444729dc112e628 Former-commit-id: f55c3e0a8cb0411b91b949aeb1d5d0f96101e0ba
This commit is contained in:
@@ -30,6 +30,9 @@ export default {
|
||||
text: this.text,
|
||||
title: '文本'
|
||||
})
|
||||
.then(() => {
|
||||
this.$message('导出文本成功')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,6 @@ export default {
|
||||
}
|
||||
// 合并参数
|
||||
const _params = Object.assign({}, paramsDefault, params)
|
||||
console.log(typeof _params.text)
|
||||
// 导出
|
||||
const blob = new Blob([_params.text], {type: 'text/plain;charset=utf-8'})
|
||||
FileSaver.saveAs(blob, _params.title + '.txt')
|
||||
|
||||
Reference in New Issue
Block a user