fix: fetch resource api once when sorting (closes #1172) (#1202)

This commit is contained in:
叫我彭一凡 2021-01-12 07:00:40 +08:00 committed by GitHub
parent b600b11415
commit 05bb7c8553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -112,9 +112,11 @@ export default {
},
watch: {
'$route': 'fetchData',
'reload': function () {
'reload': function (value) {
if (value === true) {
this.fetchData()
}
}
},
mounted () {
window.addEventListener('keydown', this.keyEvent)