From 32d2bcbf5fe82baed9fe2d975e502bc661a9737e Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Thu, 13 Jul 2023 12:00:20 +0800 Subject: [PATCH] u --- unitool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitool.js b/unitool.js index 88bf377..7cff2b5 100644 --- a/unitool.js +++ b/unitool.js @@ -111,7 +111,7 @@ export default { make_server_url (route) { if (typeof route === 'string') route = route.replace('\\', '/') - else if (typeof route === 'object') { + else if (route?.apiWho && route?.apiTodo) { const { apiVersion = 'api', apiWho, apiTodo } = route route = `${apiVersion}/${apiWho}/${apiTodo}` } else {