404 fix
This commit is contained in:
@@ -19,16 +19,16 @@ export default {
|
||||
@import "./src/scss/variables";
|
||||
@import "./src/scss/media-queries";
|
||||
.not-found{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: calc(100vh - 100px);
|
||||
background: url('~assets/pulp-fiction.jpg') no-repeat 50% 50%;
|
||||
background-size: cover;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@include tablet-min{
|
||||
height: calc(100vh - 75px);
|
||||
}
|
||||
&:before{
|
||||
content: "";
|
||||
display: block;
|
||||
|
||||
@@ -104,7 +104,6 @@ export default {
|
||||
document.title = this.movie.title + storage.pageTitlePostfix;
|
||||
}.bind(this))
|
||||
.catch(function(error) {
|
||||
console.log('error');
|
||||
this.$router.push({ name: '404' });
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
@@ -97,6 +97,9 @@ export default {
|
||||
if(this.type == 'page'){
|
||||
document.title = this.pageTitle;
|
||||
}
|
||||
}.bind(this))
|
||||
.catch(function(error) {
|
||||
this.$router.push({ name: '404' });
|
||||
}.bind(this));
|
||||
},
|
||||
loadMore(){
|
||||
@@ -124,7 +127,7 @@ export default {
|
||||
this.movies = movies;
|
||||
this.pages = pages;
|
||||
if(this.currentPage > pages){
|
||||
this.currentPage -= 1;
|
||||
this.currentPage -= 1;
|
||||
}
|
||||
this.results = results;
|
||||
}.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user