update
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
// @ts-ignore
|
||||
export const basename = DEV_SERVER ? '/' : BASE_NAME;
|
||||
export const basename = BASE_NAME;
|
||||
|
||||
console.log(basename);
|
||||
@@ -1,11 +0,0 @@
|
||||
.beian2 {
|
||||
position: fixed;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.beiann2 {
|
||||
position: static !important; /* 或者 relative,根据需求修改 */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
import clsx from 'clsx';
|
||||
import './beian.css';
|
||||
type Props = {
|
||||
className?: string;
|
||||
text?: string;
|
||||
};
|
||||
export const Beian = (props: Props) => {
|
||||
return (
|
||||
<div className={clsx('beian text-sm w-full flex justify-center text-[#e69c36]', props.className)}>
|
||||
<a href='//beian.miit.gov.cn' target='_blank'>
|
||||
{props.text}
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -1,4 +0,0 @@
|
||||
// import { message } from '@kevisual/system-ui/dist/message';
|
||||
import { toast } from 'react-toastify';
|
||||
|
||||
export const message = toast;
|
||||
@@ -1,25 +0,0 @@
|
||||
import { QueryClient } from '@kevisual/query';
|
||||
import { QueryLoginBrowser } from '@kevisual/query-login';
|
||||
|
||||
export const query = new QueryClient();
|
||||
|
||||
export const queryLogin = new QueryLoginBrowser({
|
||||
query: query as any,
|
||||
});
|
||||
|
||||
query.after(async (res, ctx) => {
|
||||
if (res.code === 401) {
|
||||
if (query.stop) {
|
||||
return {
|
||||
code: 500,
|
||||
success: false,
|
||||
message: '登录已过期.',
|
||||
};
|
||||
}
|
||||
query.stop = true;
|
||||
const result = await queryLogin.afterCheck401ToRefreshToken(res, ctx);
|
||||
query.stop = false;
|
||||
return result;
|
||||
}
|
||||
return res;
|
||||
});
|
||||
Reference in New Issue
Block a user