| @@ -4,3 +4,9 @@ FROM nginx:1.15.8-alpine | |||
| RUN sed -i 's/index index.html index.htm;/try_files $uri \/index.html;/' /etc/nginx/conf.d/default.conf | |||
| COPY /dist/lot-web-ui /usr/share/nginx/html | |||
| #FROM node:18-alpine | |||
| #WORKDIR /app | |||
| #COPY dist/ots-landing-page-ssr . | |||
| #EXPOSE 80 | |||
| #CMD node server/server.mjs | |||
| @@ -34,7 +34,7 @@ export class HomePageComponent implements OnInit,OnDestroy{ | |||
| setTimeout(() => { | |||
| this.mqtt$.sendPublish({ id: '0', type: 'get', arlamtime: ''}); | |||
| }, 1000); | |||
| this.mqtt$.messages$.pipe(takeUntil(this.unsubscribeAll)).subscribe((message: any) => { | |||
| this.mqtt$.messages$.pipe(takeUntil(this.unsubscribeAll), filter((item) => item !== null)).subscribe((message: any) => { | |||
| if (message.id == '0' && message.whistletime) { | |||
| this.whistle.time = Number(message.whistletime); | |||
| } | |||