提交 5cd70e82 编写于 作者: fxy060608's avatar fxy060608

fix(h5): log

上级 b108e82d
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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册