|
@@ -28,19 +28,19 @@ export const {
|
|
|
} = instance;
|
|
|
|
|
|
const gotoLogin = () => {
|
|
|
- if (import.meta.env.DEV) {
|
|
|
- GAxios.post("/service/manage/login", {
|
|
|
- password: "MRinIEn3ExMjM0NTY=Q5Lm39urQWzN7k4oCG",
|
|
|
- userName: "super-admin",
|
|
|
- username: "super-admin",
|
|
|
- }).then((res) => {
|
|
|
- setToken(res.data.data.token)
|
|
|
- setTimeout(() => location.reload())
|
|
|
- });
|
|
|
- } else {
|
|
|
- const loginHref = `/admin/#/statistics/scene`
|
|
|
- location.href = loginHref + '?redirect=' + escape(location.href)
|
|
|
- }
|
|
|
+ // if (import.meta.env.DEV) {
|
|
|
+ // GAxios.post("/service/manage/login", {
|
|
|
+ // password: "MRinIEn3ExMjM0NTY=Q5Lm39urQWzN7k4oCG",
|
|
|
+ // userName: "super-admin",
|
|
|
+ // username: "super-admin",
|
|
|
+ // }).then((res) => {
|
|
|
+ // setToken(res.data.data.token)
|
|
|
+ // setTimeout(() => location.reload())
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // const loginHref = `/admin/#/statistics/scene`
|
|
|
+ // location.href = loginHref + '?redirect=' + escape(location.href)
|
|
|
+ // }
|
|
|
};
|
|
|
|
|
|
addReqErrorHandler((err) => {
|