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

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)