[F] Fix null case

This commit is contained in:
Hykilpikonna
2021-12-11 17:55:16 -05:00
parent eca2695bfa
commit bf4e657a70
+1
View File
@@ -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()