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() {