From e42f1f1b6c10800f48348bd2b7f54313327b8bfc Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 13 May 2024 16:14:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E5=90=8E=20init=20Pag?= =?UTF-8?q?eSpy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 2 +- src/stores/AuthStore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) => {