diff --git a/src/App.jsx b/src/App.jsx
index 3659e2c..13c2d74 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -254,7 +254,7 @@ const App = () => {
v{APP_VERSION}{' '}
{' '}
©2022 Created by IT
-
+ {window.$pageSpy && }
diff --git a/src/stores/AuthStore.js b/src/stores/AuthStore.js
index 39a999d..394ba16 100644
--- a/src/stores/AuthStore.js
+++ b/src/stores/AuthStore.js
@@ -9,7 +9,6 @@ class AuthStore {
makeAutoObservable(this);
if (process.env.NODE_ENV === 'production') {
this.get_auth(); // 放到钉钉环境才能开启
- window.initPageSpy();
}
}
@@ -45,6 +44,7 @@ class AuthStore {
_this.user = json.result;
_this.auth = json.result.authlist;
window.__spytitle = json.result.name;
+ window.initPageSpy();
});
})
.catch((error) => {