This commit is contained in:
xyf-mac 2021-12-05 20:56:12 +08:00
parent 8702f666d0
commit f808e18722
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "cc-inspector",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

View File

@ -88,7 +88,9 @@ class CCInspector {
case Msg.LogData: {
const data: string[] = pluginEvent.data;
const value = getValue(this.inspectorGameMemoryStorage, data);
console.log(value);
// 直接写console.log会被tree shaking
const logFunction = console.log;
logFunction(value);
break;
}
case Msg.GetObjectItemData: {