提交 8172bf6e 编写于 作者: M mehaotian

fix(uni-stat): 修复版本信息输出错误

上级 df6fdb55
......@@ -71,13 +71,16 @@ var index = () => [
uniStatLog(uniCliShared.M['stat.warn.version']);
}
if (isEnable) {
uniStatLog(`已开启 uni统计${statConfig.version}.0 版本`);
uniStatLog(`已开启 uni统计${statVersion}.0 版本`);
}
}
}
else {
if (!statConfig.version) {
uniStatLog(uniCliShared.M['stat.warn.version']);
}
if (isEnable) {
uniStatLog(uniCliShared.M['stat.warn.tip'].replace('{version}', '1.0'));
uniStatLog(uniCliShared.M['stat.warn.tip'].replace('{version}', `${statVersion}.0`));
}
}
debug__default["default"]('uni:stat')('isEnable', isEnable);
......
......@@ -67,12 +67,17 @@ export default () => [
uniStatLog(M['stat.warn.version'])
}
if (isEnable) {
uniStatLog(`已开启 uni统计${statConfig.version}.0 版本`)
uniStatLog(`已开启 uni统计${statVersion}.0 版本`)
}
}
} else {
if (!statConfig.version) {
uniStatLog(M['stat.warn.version'])
}
if (isEnable) {
uniStatLog(M['stat.warn.tip'].replace('{version}', '1.0'))
uniStatLog(
M['stat.warn.tip'].replace('{version}', `${statVersion}.0`)
)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册