Compare commits

..

No commits in common. "d98e394fc22500093b455f91e607a61cf0a9dc4f" and "291e75c150a62323fd8cfd14e23d9ba6ed817449" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ export class RemoteToolWebsocket {
}
private onMessage() {
this.instance.on("message", async (_err, event: string) => {
this.instance.on("message", async (err, event: string) => {
const data = JSON.parse(event) as PlatformEvent;
console.log(Tag, 'receive', event)
switch (data.eventType) {

View File

@ -38,7 +38,7 @@ function formatDate(date: Date, fmt = 'yyyy-MM-dd') {
.replace(/s/g, date.getSeconds().toString())
.replace(/SSS/g, pad3(date.getMilliseconds()))
.replace(/S/g, date.getMilliseconds().toString())
.replace(/a/g, date.getHours() < 12 ? '上午' : '下午')
.replace(/a/g, date.getHours() < 12 ? '上午' : '下午')
.replace(/A/g, date.getHours() < 12 ? 'AM' : 'PM')
.replace(/q/g, Math.floor((date.getMonth() + 3) / 3).toString());
}