no message

Former-commit-id: 8968b85709aa05e693a16a6082df9cf32cfda00f
Former-commit-id: f6db98d53841b81d8f7c7cd53444729dc112e628
Former-commit-id: f55c3e0a8cb0411b91b949aeb1d5d0f96101e0ba
This commit is contained in:
李杨
2018-02-12 18:37:02 +08:00
parent e625d3c4f2
commit adf5951cac
2 changed files with 3 additions and 1 deletions

View File

@@ -30,6 +30,9 @@ export default {
text: this.text,
title: '文本'
})
.then(() => {
this.$message('导出文本成功')
})
}
}
}

View File

@@ -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')