* [docs]support en docs * [docs]support en webapp * [web-app]dashboard and monitor list i18n * [web-app]i18n for monitor list * [web-app]i18n for add edit monitor * [web-app]i18n for monitor detail * [web-app]i18n for login * [web-app]i18n for alert center * [web-app]i18n for alert notice * [web-app]i18n for alert setting * [web-app]i18n for notify
25 lines
716 B
TypeScript
25 lines
716 B
TypeScript
import { Component, Inject, OnInit } from '@angular/core';
|
|
import { I18NService } from '@core';
|
|
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
|
|
import { ALAIN_I18N_TOKEN } from '@delon/theme';
|
|
|
|
@Component({
|
|
selector: 'layout-passport',
|
|
templateUrl: './passport.component.html',
|
|
styleUrls: ['./passport.component.less']
|
|
})
|
|
export class LayoutPassportComponent implements OnInit {
|
|
links = [
|
|
{
|
|
title: this.i18nSvc.fanyi('app.passport.welcome'),
|
|
href: 'https://tancloud.cn'
|
|
}
|
|
];
|
|
|
|
constructor(@Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService) {}
|
|
|
|
ngOnInit(): void {
|
|
this.tokenService.clear();
|
|
}
|
|
}
|