From 1f238899f02c913ea019e9bc283384532a8504f3 Mon Sep 17 00:00:00 2001 From: samaradel Date: Mon, 23 Nov 2020 10:40:26 +0200 Subject: [PATCH] Fix build --- src/pages/Index.vue | 4 +++- src/pages/News.vue | 4 +++- src/templates/Search.vue | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/Index.vue b/src/pages/Index.vue index 8bc946e08..c79f5947e 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -24,7 +24,9 @@ export default { }, computed: { contentHeight() { - return window.innerHeight - 128; + if (process.isClient) { + return window.innerHeight - 128; + } }, }, components: { diff --git a/src/pages/News.vue b/src/pages/News.vue index e5d3ba75c..18cf96899 100644 --- a/src/pages/News.vue +++ b/src/pages/News.vue @@ -72,7 +72,9 @@ export default { return ""; }, contentHeight() { - return window.innerHeight - 160; + if (process.isClient) { + return window.innerHeight - 160; + } }, }, }; diff --git a/src/templates/Search.vue b/src/templates/Search.vue index 7d67263d8..dcd66230d 100644 --- a/src/templates/Search.vue +++ b/src/templates/Search.vue @@ -135,7 +135,9 @@ export default { return result; }, contentHeight() { - return window.innerHeight - 128; + if (process.isClient) { + return window.innerHeight - 128; + } }, }, mounted() {