Browse Source

Поправлен баг редиректа

Book Pauk 4 years ago
parent
commit
33961abd86
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/components/App.vue

+ 2 - 0
client/components/App.vue

@@ -199,6 +199,8 @@ class App extends Vue {
             const q = utils.parseQuery(search);
             if (q.p && `/${q.p}` != this.rootRoute) {
                 this.$router.replace('/404');
+                //чтобы ниоткуда нельзя было изменить путь (если какие-то страницы еще грузятся)
+                this.$router.push = this.$router.replace = null;
             }
 
             //распознавание параметра url вида "?url=<link>" и редирект при необходимости