提交 0dc0d1c5 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 1042cfaa
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
}, },
computed: { computed: {
href() { href() {
return this.data.href || this.data.uri || (this.to.includes('http') ? this.to : '') return this.data.href || this.data.uri || (typeof this.to === 'string' && this.to.includes('http') ? this.to : '')
}, },
path() { path() {
if (typeof this.to === 'function') { if (typeof this.to === 'function') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论