/* eslint-disable quotes */
import { Component, OnInit } from "@angular/core";
import { DwSsoService } from "@webdpt/framework";
import { DigiMiddlewareAuthApp } from "../../../app/config/app-auth-token";
@Component({
  selector: "app-home",
  templateUrl: "./home.component.html",
  styleUrls: ["./home.component.css"],
})
export class HomeComponent implements OnInit {
  constructor(private ssoService: DwSsoService) {}
  userToken: string;
  // eslint-disable-next-line @angular-eslint/use-lifecycle-interface
  ngOnInit() {
    const _this = this;
  }
  toLink() {
    // const url =
    //   "http://PCC_MECH2-test.apps.digiwincloud.com.cn/sso-login?userToken=981dc293-8ccd-470f-9e36-99ba30af1324";
    const url =
      "https://athena-test.digiwincloud.com.cn/sso-login?userToken=" +
      this.userToken;
    // const url =
    //   "https://athena-dev-platform-test.digiwincloud.com.cn/sso-login?userToken=981dc293-8ccd-470f-9e36-99ba30af1324";
    // console.log("url", url);
    window.open(url);
  }
}
