Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -12,7 +12,7 @@ export class LogoutModel{ | @@ -12,7 +12,7 @@ export class LogoutModel{ | ||
| 12 | let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders(); | 12 | let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders(); |
| 13 | return new Promise<string>((success, fail) => { | 13 | return new Promise<string>((success, fail) => { |
| 14 | HttpRequest.post<ResponseDTO<string>>(HttpUrlUtils.accountLogoutUrl(), bean, headers).then((data: ResponseDTO<string>) => { | 14 | HttpRequest.post<ResponseDTO<string>>(HttpUrlUtils.accountLogoutUrl(), bean, headers).then((data: ResponseDTO<string>) => { |
| 15 | - if (!data || !data.data) { | 15 | + if (!data) { |
| 16 | fail("数据为空") | 16 | fail("数据为空") |
| 17 | return | 17 | return |
| 18 | } | 18 | } |
| @@ -20,7 +20,7 @@ export class LogoutModel{ | @@ -20,7 +20,7 @@ export class LogoutModel{ | ||
| 20 | fail(data.message) | 20 | fail(data.message) |
| 21 | return | 21 | return |
| 22 | } | 22 | } |
| 23 | - success(data.data) | 23 | + success(data.message) |
| 24 | }, (error: Error) => { | 24 | }, (error: Error) => { |
| 25 | fail(error.message) | 25 | fail(error.message) |
| 26 | // Logger.debug("LoginViewModel:error ", error.toString()) | 26 | // Logger.debug("LoginViewModel:error ", error.toString()) |
-
Please register or login to post a comment