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

This commit is contained in:
叫我彭一凡 authored and GitHub committed 2021-01-12 00:00:40 +01:00
1 parent b600b11415
commit 05bb7c8553
1 file changed
+3 -1
+3 -1
View File
@@ -112,9 +112,11 @@ export default {
}, },
watch: { watch: {
'$route': 'fetchData', '$route': 'fetchData',
'reload': function () { 'reload': function (value) {
if (value === true) {
this.fetchData() this.fetchData()
} }
}
}, },
mounted () { mounted () {
window.addEventListener('keydown', this.keyEvent) window.addEventListener('keydown', this.keyEvent)