|
|
|
|
@ -103,20 +103,16 @@
|
|
|
|
|
}
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
console.log("this.onlyOneChild", this.onlyOneChild)
|
|
|
|
|
return false
|
|
|
|
|
},
|
|
|
|
|
resolvePath(routePath) {
|
|
|
|
|
|
|
|
|
|
if (isExternal(routePath)) {
|
|
|
|
|
console.log("path",routePath)
|
|
|
|
|
if (isExternal(routePath)) {
|
|
|
|
|
return routePath
|
|
|
|
|
}
|
|
|
|
|
if (isExternal(this.basePath)) {
|
|
|
|
|
console.log("basePath",this.basePath)
|
|
|
|
|
if (isExternal(this.basePath)) {
|
|
|
|
|
return this.basePath
|
|
|
|
|
}
|
|
|
|
|
console.log("resolve",path.resolve(this.basePath, routePath))
|
|
|
|
|
}
|
|
|
|
|
return path.resolve(this.basePath, routePath)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|