From 05bb7c85531349f3e9d1d8a523bb1243587b2ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AB=E6=88=91=E5=BD=AD=E4=B8=80=E5=87=A1?= Date: Tue, 12 Jan 2021 07:00:40 +0800 Subject: [PATCH] fix: fetch resource api once when sorting (closes #1172) (#1202) --- frontend/src/views/Files.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index c0e03bfc..ee2e8d8f 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -112,8 +112,10 @@ export default { }, watch: { '$route': 'fetchData', - 'reload': function () { - this.fetchData() + 'reload': function (value) { + if (value === true) { + this.fetchData() + } } }, mounted () {