任一存 2 năm trước cách đây
mục cha
commit
81b8a4ddd5
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/Bag.vue

+ 3 - 3
src/views/Bag.vue

@@ -138,10 +138,10 @@ export default {
     ...mapMutations([
     ]),
     onClickBuild(e) {
-      this.$router.push({
-        name: 'BuildTown'
-      })
       if (this.canBuild) {
+        this.$router.push({
+          name: 'BuildTown'
+        })
       } else {
         utils.animateCSS(e.currentTarget, 'headShake')
       }