zhaoke 3 роки тому
батько
коміт
78a1e5973a
1 змінених файлів з 2 додано та 0 видалено
  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;