<template>
	<div class="share">
		<input type="file" @change="readFile">
	</div>
</template>
<script>
	import xlsxRead from 'xlsxread'
	export default {
		methods: {
			readFile (file){
				const xlsxFile = file.target.files[0];
				this.file = xlsxFile;
				xlsxRead.readJson(xlsxFile, 'money').then(list => {
					console.log(list)
				});
			}
		},
		created(){}
	}
</script>
