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