mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
parent
b702703472
commit
10e8b296e3
@ -68,8 +68,13 @@ function hasOneShowingChild(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resolvePath(routePath) {
|
function resolvePath(routePath) {
|
||||||
|
const httpReg = /^http(s?):\/\//;
|
||||||
|
if (httpReg.test(routePath)) {
|
||||||
|
return props.basePath + "/" + routePath;
|
||||||
|
} else {
|
||||||
return path.resolve(props.basePath, routePath);
|
return path.resolve(props.basePath, routePath);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user