import { Component } from '@angular/core';
import {Router} from "@angular/router";
import {NzResultModule} from "ng-zorro-antd/result";
import {NzButtonComponent} from "ng-zorro-antd/button";

@Component({
  selector: 'app-error404',
  standalone: true,
  imports: [
    NzResultModule,
    NzButtonComponent
  ],
  templateUrl: './error404.component.html',
  styleUrl: './error404.component.less'
})
export class Error404Component {
  constructor(

    private router: Router,  // 路由
  ) {}


  // 退出登录
  public getHome(): void {
    this.router.navigateByUrl('/admin/index').then(r => console.log("返回内容" ,r));
  }
}
