From 5cd70e82d0f9f9714b407e33ddc2d087ed84514d Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 27 Aug 2021 19:45:18 +0800 Subject: [PATCH] fix(h5): log --- packages/uni-cli-shared/src/hbx/log.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uni-cli-shared/src/hbx/log.ts b/packages/uni-cli-shared/src/hbx/log.ts index a82b2b90e..51c9cd54c 100644 --- a/packages/uni-cli-shared/src/hbx/log.ts +++ b/packages/uni-cli-shared/src/hbx/log.ts @@ -1,10 +1,11 @@ import { Formatter } from '../logs/format' +const SIGNAL_H5_LOCAL = ' > Local:' const SIGNAL_H5_NETWORK = ' > Network:' const networkLogs: string[] = [] export const h5ServeFormatter: Formatter = { test(msg) { - return msg.includes(SIGNAL_H5_NETWORK) + return msg.includes(SIGNAL_H5_LOCAL) || msg.includes(SIGNAL_H5_NETWORK) }, format(msg) { if (msg.includes(SIGNAL_H5_NETWORK)) { -- GitLab