[F] Fix null case
This commit is contained in:
@@ -83,6 +83,7 @@ export default class App extends Vue
|
|||||||
{
|
{
|
||||||
if (this.currentRoute in this.$refs)
|
if (this.currentRoute in this.$refs)
|
||||||
this.currentLink = (this.$refs[this.currentRoute] as Vue).$el
|
this.currentLink = (this.$refs[this.currentRoute] as Vue).$el
|
||||||
|
else return
|
||||||
|
|
||||||
// https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect
|
// https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect
|
||||||
let box = this.currentLink.getBoundingClientRect()
|
let box = this.currentLink.getBoundingClientRect()
|
||||||
|
|||||||
Reference in New Issue
Block a user