任一存 2 lat temu
rodzic
commit
81b8a4ddd5
1 zmienionych plików z 3 dodań i 3 usunięć
  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')
       }