mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
fix: 修复UploadKey失败问题
This commit is contained in:
parent
2ee6fef2bc
commit
3a353ff505
@ -26,10 +26,6 @@ export default {
|
|||||||
if (e.target.files.length === 0) {
|
if (e.target.files.length === 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const file_name = e.target.files[0].name
|
|
||||||
if (file_name.substr(-5) !== '.json') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const vm = this
|
const vm = this
|
||||||
const reader = new FileReader()
|
const reader = new FileReader()
|
||||||
reader.onload = function() {
|
reader.onload = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user