From 94e6ca608b417da5eb051d1c5e94c31388da9369 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Thu, 12 Jul 2018 10:15:36 +0800 Subject: [PATCH] token 完善 --- src/app/core/net/default.interceptor.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/net/default.interceptor.ts b/src/app/core/net/default.interceptor.ts index 646fd59..236992a 100644 --- a/src/app/core/net/default.interceptor.ts +++ b/src/app/core/net/default.interceptor.ts @@ -27,11 +27,11 @@ // TIPS������TOKEN��������������� `@delon/auth` ������ // Document: http://ng-alain.com/docs/auth - + debugger; // ��������������������������� let url = req.url; - if (!url.startsWith('https://') && !url.startsWith('http://')) { - url = environment.SERVER_URL + url; + if (!url.startsWith('https://') && !url.startsWith('http://') && !url.startsWith('assets')) { + url = environment.SERVER_URL + url; } const newReq = req.clone({ -- Gitblit v1.8.0