From 7bbcf69fe5ebab162d7da7acf4ce55cce75b86d0 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Fri, 24 Sep 2021 16:07:32 +0800 Subject: [PATCH] u --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 7aa06c1..327d03e 100644 --- a/index.js +++ b/index.js @@ -69,9 +69,7 @@ module.exports = { // }, makeServerUrl(route = '') { - if (route && typeof route === 'object') { - route = `${route.api}/${route.class}/${route.method}` - } + if (typeof route !== 'string') route = '' // 防止 route 为 null, undedefined 等由于后台数据库默认值而造成的异常。 if (/^https?:\/\//.test(route)) { return route