diff --git a/app/web/app.tsx b/app/web/app.tsx
index 05761a1..2e9a2c9 100644
--- a/app/web/app.tsx
+++ b/app/web/app.tsx
@@ -8,6 +8,7 @@ import { bindActionCreators } from 'redux';
import routes from '@/router';
import * as actions from '@/store/actions';
+import { version } from '../../package.json';
import 'antd/dist/antd.less';
import 'ant-design-dtinsight-theme/theme/dt-theme/reset.less';
import 'ant-design-dtinsight-theme/theme/dt-theme/index.less';
@@ -33,10 +34,20 @@ const App = () => {
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
};
+
+ const logVersion = () => {
+ window.console.log(
+ `%cApp current version: v${version}`,
+ 'font-family: Cabin, Helvetica, Arial, sans-serif;text-align: left;font-size:32px;color:#B21212;'
+ );
+ };
+
useEffect(() => {
+ logVersion();
hotJar();
changeLocalIp();
}, []);
+
return (
diff --git a/package.json b/package.json
index c28e470..3f982fb 100644
--- a/package.json
+++ b/package.json
@@ -133,7 +133,7 @@
}
},
"engines": {
- "node": "14"
+ "node": ">=14"
},
"ci": {
"version": "8, 9"
diff --git a/yarn.lock b/yarn.lock
index 7865434..22dc316 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4275,9 +4275,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001400:
- version "1.0.30001622"
- resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001622.tgz"
- integrity sha512-H+g7cwL2r1TzN4HpM1ZzhaOf7zwMNAZomX/uao6flMFsT3sLIpxi9H3QMo7U0KPWr0a8/Zvl8sQgrr6RXJ0HRw==
+ version "1.0.30001686"
+ resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz"
+ integrity sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA==
capture-stack-trace@^1.0.0:
version "1.0.2"