This commit is contained in:
2025-10-27 01:40:38 +08:00
parent 896390e8eb
commit 0f04bbe1f9
57 changed files with 7576 additions and 870 deletions

View File

@@ -1,2 +1,4 @@
// @ts-ignore
export const basename = DEV_SERVER ? '/' : BASE_NAME;
export const basename = BASE_NAME;
console.log(basename);

View File

@@ -1,11 +0,0 @@
.beian2 {
position: fixed;
z-index: 99;
}
@media (max-width: 640px) {
.beiann2 {
position: static !important; /* 或者 relative根据需求修改 */
}
}

View File

@@ -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>
);
};

View File

@@ -1,4 +0,0 @@
// import { message } from '@kevisual/system-ui/dist/message';
import { toast } from 'react-toastify';
export const message = toast;

View File

@@ -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;
});