edit
This commit is contained in:
@ -114,6 +114,9 @@ export class AmapService {
|
||||
}
|
||||
|
||||
formatTime(time: string): string {
|
||||
if (!time) {
|
||||
return '';
|
||||
}
|
||||
return `${time.slice(0, 4)}-${time.slice(4, 6)}-${time.slice(6, 8)} ${time.slice(9, 11)}:${time.slice(11, 13)}:${time.slice(13, 15)}`;
|
||||
}
|
||||
}
|
||||
@ -128,6 +131,7 @@ export interface POI {
|
||||
export interface InfoItem {
|
||||
title?: string;
|
||||
content?: string;
|
||||
time?: string;
|
||||
position: string[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user