u
This commit is contained in:
parent
3800ce4373
commit
3232ba9c92
2
index.js
2
index.js
@ -62,7 +62,7 @@ module.exports = {
|
|||||||
makeServerUrl(route = '') {
|
makeServerUrl(route = '') {
|
||||||
if (typeof route !== 'string') route = '' // 防止 route 为 null, undefined 等由于后台数据库默认值而造成的异常。
|
if (typeof route !== 'string') route = '' // 防止 route 为 null, undefined 等由于后台数据库默认值而造成的异常。
|
||||||
|
|
||||||
route.replace('\\', '/')
|
route = route.replace('\\', '/')
|
||||||
if (/^https?:\/\//.test(route)) {
|
if (/^https?:\/\//.test(route)) {
|
||||||
return route
|
return route
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user