fix(ui): 统一下载页主题与智能路由页签间距
This commit is contained in:
@@ -261,8 +261,11 @@ export default function UiThemeProvider({ children }) {
|
||||
// 日期面板的星期、月份名称来自 dayjs 全局语言,需与 Ant Design locale 保持一致。
|
||||
dayjs.locale(DAYJS_LOCALES[language] || 'zh-cn');
|
||||
useLayoutEffect(() => {
|
||||
// The hosted download page shares the system shell and its popup tokens.
|
||||
const isDownloadPage = /^\/weyai\/download\/?$/.test(pathname);
|
||||
document.body.dataset.uiScope =
|
||||
pathname.startsWith('/weyai/') || pathname.startsWith('/client/authorize')
|
||||
(pathname.startsWith('/weyai/') && !isDownloadPage) ||
|
||||
pathname.startsWith('/client/authorize')
|
||||
? 'external'
|
||||
: 'admin';
|
||||
}, [pathname]);
|
||||
|
||||
Reference in New Issue
Block a user