提交 dd37c63e 编写于 作者: 麦壳饼's avatar 麦壳饼

修改cap和健康检查api路径写死的问题

上级 19b61ab8
......@@ -26,7 +26,7 @@
Quartz
<small class="text-sm font-weight-normal"></small>
</ng-template>
<iframe src="quartz/Scheduler" width="100%"
<iframe src="/quartz/Scheduler" width="100%"
style="border: 0; padding-top: -40px; position:relative; height: 1000px; " scrolling="no">
</iframe>
......
......@@ -22,7 +22,7 @@ export class StatisticsComponent implements OnInit, IWidgetComponent {
constructor(private http: _HttpClient, private cdr: ChangeDetectorRef) {}
ngOnInit(): void {
let date: Date = new Date();
this.http.get('http://localhost:5000/cap/api/metrics').subscribe({
this.http.get('cap/api/metrics').subscribe({
next: next => {
for (var i = 0; i < next.dayHour.length; i++) {
this.chartdata.push({
......@@ -39,7 +39,7 @@ export class StatisticsComponent implements OnInit, IWidgetComponent {
complete: () => {}
});
this.http.get('http://localhost:5000/healthchecks-api').subscribe({
this.http.get('healthchecks-api').subscribe({
next: next => {
this.data = next[0].entries;
this.cdr.detectChanges();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册