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); } } };