|
@@ -4,6 +4,7 @@ import { FormBuilder, Validators, FormGroup } from "@angular/forms";
|
4
|
4
|
import { NzMessageService } from "ng-zorro-antd/message";
|
5
|
5
|
|
6
|
6
|
import { MainService } from "../../services/main.service";
|
|
7
|
+import http from "../../../assets/js/http";
|
7
|
8
|
import { AES, mode, pad, enc } from "crypto-js";
|
8
|
9
|
|
9
|
10
|
@Component({
|
|
@@ -12,6 +13,7 @@ import { AES, mode, pad, enc } from "crypto-js";
|
12
|
13
|
styleUrls: ["./login.component.less"],
|
13
|
14
|
})
|
14
|
15
|
export class LoginComponent implements OnInit {
|
|
16
|
+ http;
|
15
|
17
|
validateForm: FormGroup;
|
16
|
18
|
loading: boolean = false;
|
17
|
19
|
|
|
@@ -23,6 +25,7 @@ export class LoginComponent implements OnInit {
|
23
|
25
|
private msg: NzMessageService
|
24
|
26
|
) {}
|
25
|
27
|
ngOnInit() {
|
|
28
|
+ this.http = http;
|
26
|
29
|
let url = location.href;
|
27
|
30
|
this.isSingleSignOn = url.includes("?");
|
28
|
31
|
if (this.isSingleSignOn) {
|