From bf4e657a70f671261d25f5bf63d968bbe9e294cf Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 11 Dec 2021 17:55:16 -0500 Subject: [PATCH] [F] Fix null case --- src/App.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.vue b/src/App.vue index 9620265..d6229d1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -83,6 +83,7 @@ export default class App extends Vue { if (this.currentRoute in this.$refs) this.currentLink = (this.$refs[this.currentRoute] as Vue).$el + else return // https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect let box = this.currentLink.getBoundingClientRect()