我打包了一个h5,部署https://m.mh15web.mbldt.com
然后发现控制台不断在打印
[system] App:onLaunch have been invoked {"path":"pages/login/login","query":{},"scene":1001}
chunk-vendors.b7330156.js:7 [system] App:onShow have been invoked {"path":"pages/login/login","query":{},"scene":1001}
chunk-vendors.b7330156.js:7 [system] pages/login/login[3]:--window-top=calc(44px + env(safe-area-inset-top))
chunk-vendors.b7330156.js:7 [system] pages/login/login[3]:--window-bottom=0px
chunk-vendors.b7330156.js:7 [system] pages/login/login[3]:onLoad have been invoked
chunk-vendors.b7330156.js:7 [system] pages/login/login[3]:onShow have been invoked
chunk-vendors.b7330156.js:7 [system] pages/login/login[3]:onReady have been invoked
定位发布后的js代码,发现是(下面有个console,但真不是我写的!)
我没启动过debug模式,以前也没出现这个情况,已经试过重新发布多次,情况一样
请问如何解决?
"5a52": function(t, e, n) {
"use strict";
(function(t) {
Object.defineProperty(e, "__esModule", {
value: !0
}), e.default = void 0;
var n = Array.prototype.unshift;
function r(t) {
return n.call(t, "[system]"), t
}
function i(e) {
return function() {
var n = !0;
"debug" !== e || __uniConfig.debug || (n = !1), n && t.console[e].apply(t.console, r(arguments))
}
}
var o = {
log: i("log"),
info: i("info"),
warn: i("warn"),
debug: i("debug"),
error: i("error")
};
e.default = o
}).call(this, n("c8ba"))
},