提交 ab9e6a36 编写于 作者: M mxd

修复在配置`baseURL`为`/`开头时的拼接错误

上级 b91f502e
......@@ -105,7 +105,7 @@ export default {
if (contants.BASE_URL.startsWith('http')) { // http开头
link = contants.BASE_URL
} else if (contants.BASE_URL.startsWith('/')) { // / 开头的
link = link + contants.BASE_URL
link = `${location.protocol}/${location.host}${contants.BASE_URL}`
} else {
link = link + '/' + contants.BASE_URL
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册