修改路径

This commit is contained in:
小海
2020-05-16 22:18:45 +08:00
parent abc792a561
commit 42177a7721
683 changed files with 92 additions and 18398 deletions

View File

@@ -0,0 +1,36 @@
import {Component, OnInit} from '@angular/core';
import {ApiService} from '../../api/api.service';
import {Title} from '@angular/platform-browser';
@Component({
selector: 'view-update',
templateUrl: './update.component.html',
styleUrls: ['./update.component.less']
})
export class UpdateComponent implements OnInit {
constructor(private titleService: Title,
private apiService: ApiService) {
titleService.setTitle('小海博客 | 网站更新记录');
}
lastUpdate: {
lastUpdateTime: string;
lastUpdateInfo: string;
lastCommit: string;
committerAuthor: string;
committerDate: string;
commitUrl:string
} ;
webUpdate: { id: number, info: string, time: string }[] = [];
ngOnInit() {
this.apiService.lastestUpdate().subscribe(data => {
this.lastUpdate = data.result;
});
this.apiService.webUpdate().subscribe(data => {
this.webUpdate = data.result.reverse();
});
}
}