panhui 4 tahun lalu
induk
melakukan
32213b22b0
1 mengubah file dengan 4 tambahan dan 7 penghapusan
  1. 4 7
      src/views/product/Tasks.vue

+ 4 - 7
src/views/product/Tasks.vue

@@ -98,13 +98,10 @@ export default {
                     return this.$store.dispatch('getUserInfo');
                     return this.$store.dispatch('getUserInfo');
                 })
                 })
                 .then(() => {
                 .then(() => {
-                    this.$dialog
-                        .alert({
-                            title: '助力成功'
-                        })
-                        .then(() => {
-                            this.$router.replace('/home');
-                        });
+                    this.$toast.success('助力成功');
+                    setTimeout(() => {
+                        this.$router.replace('/home');
+                    }, 1000);
                 })
                 })
                 .catch(e => {
                 .catch(e => {
                     if (e) {
                     if (e) {