zhaoke 3 năm trước cách đây
mục cha
commit
78a1e5973a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/App.vue

+ 2 - 0
src/App.vue

@@ -250,9 +250,11 @@ export default {
           }
           if (num >= 5) {
             await this.$store.dispatch('user/logout')
+            this.$store.dispatch("app/getErrorNum", 0);
             this.clearAll()
             this.$store.dispatch("app/toggleDialog", false)
             this.$router.push(`/login?redirect=${this.$route.fullPath}`)
+            location.reload()
           }
           this.$message.error(res.message);
           this.loading = false;