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
+4 -2
+4 -2
View File
@@ -112,8 +112,10 @@ export default {
}, },
watch: { watch: {
'$route': 'fetchData', '$route': 'fetchData',
'reload': function () { 'reload': function (value) {
this.fetchData() if (value === true) {
this.fetchData()
}
} }
}, },
mounted () { mounted () {