Skip to content

Commit

Permalink
fix: 修复UploadKey失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie authored and ibuler committed Nov 1, 2021
1 parent 2ee6fef commit 3a353ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/FormFields/UploadKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ export default {
if (e.target.files.length === 0) {
return
}
const file_name = e.target.files[0].name
if (file_name.substr(-5) !== '.json') {
return
}
const vm = this
const reader = new FileReader()
reader.onload = function() {
Expand Down

0 comments on commit 3a353ff

Please sign in to comment.