From 8bfb8339c89142ca8800efad509b69c1f9ffca2a Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Wed, 28 Feb 2018 13:46:41 +0800
Subject: [PATCH] debug
---
src/app/routes/dashboard/v1/v1.component.ts | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/app/routes/dashboard/v1/v1.component.ts b/src/app/routes/dashboard/v1/v1.component.ts
index 388ae8a..e8e6596 100644
--- a/src/app/routes/dashboard/v1/v1.component.ts
+++ b/src/app/routes/dashboard/v1/v1.component.ts
@@ -1,3 +1,4 @@
+import { LoginService } from '@business/services/http/login.service';
import { NzMessageService } from 'ng-zorro-antd';
import { Component, OnInit } from '@angular/core';
import { _HttpClient } from '@delon/theme';
@@ -8,7 +9,8 @@
})
export class DashboardV1Component implements OnInit {
- constructor(private http: _HttpClient, public msg: NzMessageService) { }
+ constructor(private http: _HttpClient, public msg: NzMessageService,
+ public loginService:LoginService) { }
todoData: any[] = [
{ completed: true, avatar: '1', name: '���������', content: `������������������������������������������` },
@@ -26,6 +28,10 @@
offlineChartData: any[] = [];
ngOnInit() {
+ // ������������������,������������������������
+ setTimeout(() => {
+ this.loginService.loadUserContext();
+ }, 1);
// this.http.get('/chart').subscribe((res: any) => {
// this.webSite = res.visitData.slice(0, 10);
// this.salesData = res.salesData;
--
Gitblit v1.8.0