This commit is contained in:
陆柯 2023-07-13 12:00:20 +08:00
parent bc5c0a5eb4
commit 32d2bcbf5f

View File

@ -111,7 +111,7 @@ export default {
make_server_url (route) { make_server_url (route) {
if (typeof route === 'string') route = route.replace('\\', '/') if (typeof route === 'string') route = route.replace('\\', '/')
else if (typeof route === 'object') { else if (route?.apiWho && route?.apiTodo) {
const { apiVersion = 'api', apiWho, apiTodo } = route const { apiVersion = 'api', apiWho, apiTodo } = route
route = `${apiVersion}/${apiWho}/${apiTodo}` route = `${apiVersion}/${apiWho}/${apiTodo}`
} else { } else {