From 722a872b5e767a4295c26eed7016ebe14780cec1 Mon Sep 17 00:00:00 2001 From: tonglx Date: Fri, 10 Dec 2021 09:56:03 +0800 Subject: [PATCH] =?UTF-8?q?target.prototype.url=20=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cool/core/service/decorator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cool/core/service/decorator.ts b/src/cool/core/service/decorator.ts index 22e353e..2481770 100644 --- a/src/cool/core/service/decorator.ts +++ b/src/cool/core/service/decorator.ts @@ -37,7 +37,7 @@ export function Service(value: any) { if (proxy) { target.prototype.proxy = proxy; - target.prototype.url = url || item ? item.target : null; + target.prototype.url = url || (item ? item.target : null); } } };