Browse Source

fix the page does not refresh after clicking the delete function.. (#4360)

zhuangchong 4 years ago
parent
commit
66141d58f6

+ 2 - 3
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/timing/_source/list.vue

@@ -141,11 +141,10 @@
         this.deleteTiming({
           scheduleId: item.id
         }).then(res => {
-          this.$refs[`poptip-delete-${i}`][0].doClose()
+          this.pageNo = 1
+          this._getScheduleList('false')
           this.$message.success(res.msg)
-          this.$router.push({ name: 'projects-definition-list' })
         }).catch(e => {
-          this.$refs[`poptip-delete-${i}`][0].doClose()
           this.$message.error(e.msg || '')
         })
       },