2021-11-27 22:21:52 +08:00
|
|
|
import { Component, Inject, OnInit } from '@angular/core';
|
2022-04-11 22:59:36 +08:00
|
|
|
import { I18NService } from '@core';
|
2021-11-27 22:21:52 +08:00
|
|
|
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
|
2022-04-11 22:59:36 +08:00
|
|
|
import { ALAIN_I18N_TOKEN } from '@delon/theme';
|
2021-11-27 22:21:52 +08:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'layout-passport',
|
|
|
|
|
templateUrl: './passport.component.html',
|
|
|
|
|
styleUrls: ['./passport.component.less']
|
|
|
|
|
})
|
|
|
|
|
export class LayoutPassportComponent implements OnInit {
|
|
|
|
|
links = [
|
|
|
|
|
{
|
2022-04-11 22:59:36 +08:00
|
|
|
title: this.i18nSvc.fanyi('app.passport.welcome'),
|
2021-12-23 15:59:49 +08:00
|
|
|
href: 'https://tancloud.cn'
|
2021-11-27 22:21:52 +08:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
2022-04-11 22:59:36 +08:00
|
|
|
constructor(@Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService) {}
|
2021-11-27 22:21:52 +08:00
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
|
|
|
|
this.tokenService.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|