提交 288a3701 编写于 作者: fxy060608's avatar fxy060608

fix(app): log

上级 df1cb76e
......@@ -656,7 +656,7 @@ function parseUrl(url) {
function formatAppLog(type, filename, ...args) {
// @ts-ignore
uni.__log__ && uni.__log__(type, filename, args);
uni.__log__ && uni.__log__(type, filename, ...args);
}
function formatH5Log(type, filename, ...args) {
console[type].apply(console, [...args, filename]);
......
......@@ -652,7 +652,7 @@ function parseUrl(url) {
function formatAppLog(type, filename, ...args) {
// @ts-ignore
uni.__log__ && uni.__log__(type, filename, args);
uni.__log__ && uni.__log__(type, filename, ...args);
}
function formatH5Log(type, filename, ...args) {
console[type].apply(console, [...args, filename]);
......
......@@ -4,7 +4,7 @@ export function formatAppLog(
...args: unknown[]
) {
// @ts-ignore
uni.__log__ && uni.__log__(type, filename, args)
uni.__log__ && uni.__log__(type, filename, ...args)
}
export function formatH5Log(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册