|
|
@ -9,7 +9,6 @@ class AuthStore {
|
|
|
|
makeAutoObservable(this);
|
|
|
|
makeAutoObservable(this);
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
this.get_auth(); // 放到钉钉环境才能开启
|
|
|
|
this.get_auth(); // 放到钉钉环境才能开启
|
|
|
|
window.initPageSpy();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +44,7 @@ class AuthStore {
|
|
|
|
_this.user = json.result;
|
|
|
|
_this.user = json.result;
|
|
|
|
_this.auth = json.result.authlist;
|
|
|
|
_this.auth = json.result.authlist;
|
|
|
|
window.__spytitle = json.result.name;
|
|
|
|
window.__spytitle = json.result.name;
|
|
|
|
|
|
|
|
window.initPageSpy();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((error) => {
|
|
|
|
.catch((error) => {
|
|
|
|