diff options
Diffstat (limited to 'src/views/ChecksumTab20.vue')
-rw-r--r-- | src/views/ChecksumTab20.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/ChecksumTab20.vue b/src/views/ChecksumTab20.vue index 442f515..bbd972b 100644 --- a/src/views/ChecksumTab20.vue +++ b/src/views/ChecksumTab20.vue @@ -139,7 +139,7 @@ export default { */ getChecksum(algorithmType) { const url = generateUrl('/apps/checksum/check') - const params = { source: this.fileInfo.path + this.fileInfo.name, type: algorithmType } + const params = { source: `${this.fileInfo.path}/${this.fileInfo.name}`, type: algorithmType } axios.get(url, { params }).then(response => { this.loading = false this.hash = response.data.msg @@ -153,7 +153,8 @@ export default { */ resetState() { this.loading = false - this.algorithm = '' + this.algorithm = algorithms[0] + this.hash = '' }, }, } |