From 12b99cec95c8f4359dc1a19ca2588a6bf7f70bfe Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 2 Sep 2022 17:12:16 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2171=20fix=EF=BC=9A=20=E4=BF=AE=E5=A4=8Dbac?= =?UTF-8?q?kup=20=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0=20=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E4=B8=8D=E6=AD=A3=E5=B8=B8=20=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=20=E6=AF=8F=E6=AC=A1=E7=82=B9=E5=87=BB=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20=E6=97=B6=E9=97=B4=E9=83=BD=E4=BC=9A=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/config/backups.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nezha-fronted/src/components/page/config/backups.vue b/nezha-fronted/src/components/page/config/backups.vue index 8b5f7f012..02ff0f858 100644 --- a/nezha-fronted/src/components/page/config/backups.vue +++ b/nezha-fronted/src/components/page/config/backups.vue @@ -107,9 +107,7 @@ export default { mounted () { this.getTableData() - bus.$on('backupNow', () => { - this.getTableData() - }) + bus.$on('backupNow', this.getTableData) }, methods: { @@ -168,7 +166,7 @@ export default { }, edit (row) { this.object = { - ...row, + ...this.$loadsh.cloneDeep(row), checkDay: '', checkDays: '', datepicker: '' @@ -190,6 +188,9 @@ export default { } }, - watch: {} + watch: {}, + beforeDestroy () { + bus.$off('backupNow', this.getTableData) + } }