故事详情排版修改

This commit is contained in:
jiangh277
2025-12-26 20:40:39 +08:00
parent 07e011febd
commit e4308aaeb5
4 changed files with 27 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ export default [
},
{
path: '/',
redirect: './account/center',
redirect: '/account',
},
/* {
path: '/',

View File

@@ -1,5 +1,6 @@
import {
ModalForm,
ProFormDatePicker,
ProFormDateTimePicker,
ProFormSelect,
ProFormText,
@@ -11,6 +12,7 @@ import ImgCrop from 'antd-img-crop';
import type { StoryType } from '../data.d';
import useStyles from '../style.style';
import { defaultIcons } from '@/commonConstant/commonConstant';
import dayjs from 'dayjs';
type OperationModalProps = {
done: boolean;
@@ -290,8 +292,8 @@ const OperationModal: FC<OperationModalProps> = (props) => {
)}
{/* 其他表单项 */}
<ProFormDateTimePicker
name="createTime"
<ProFormDatePicker
name="storyTime"
label="开始时间"
rules={[
{
@@ -303,6 +305,7 @@ const OperationModal: FC<OperationModalProps> = (props) => {
style: {
width: '100%',
},
maxDate: dayjs().endOf('day'),
}}
placeholder="请选择"
/>

View File

@@ -55,12 +55,23 @@ const useStyles = createStyles(({ token }) => {
[`@media screen and (max-width: ${token.screenXS}px)`]: {
marginLeft: '0',
'& > div': {
display: 'block',
marginBottom: '8px',
marginLeft: '0',
},
},
[`@media screen and (max-width: ${token.screenSM}px)`]: {
'& > div': {
display: 'block',
marginBottom: '8px',
marginLeft: '0',
},
},
[`@media screen and (max-width: ${token.screenMD}px)`]: {
'& > div': {
display: 'block',
marginBottom: '8px',
marginLeft: '0',
},
'& > div:last-child': {
top: '0',
@@ -70,6 +81,8 @@ const useStyles = createStyles(({ token }) => {
[`@media screen and (max-width: ${token.screenLG}px) and (min-width: @screen-md)`]: {
'& > div': {
display: 'block',
marginBottom: '8px',
marginLeft: '0',
},
'& > div:last-child': {
top: '0',
@@ -99,6 +112,12 @@ const useStyles = createStyles(({ token }) => {
verticalAlign: 'middle',
'> span': { lineHeight: '20px' },
'> p': { marginTop: '4px', marginBottom: '0', lineHeight: '22px' },
[`@media screen and (max-width: ${token.screenXS}px)`]: {
display: 'block',
marginBottom: '8px',
marginLeft: '0',
width: '100%',
},
},
extraContentSearch: {
width: '272px',

View File

@@ -121,7 +121,7 @@ const Login: React.FC = () => {
// await fetchUserInfo();
localStorage.setItem('timeline_user', JSON.stringify(response.data))
const urlParams = new URL(window.location.href).searchParams;
window.location.href = urlParams.get('redirect') || '/';
window.location.href = urlParams.get('redirect')?.split('?redirect=')[1] || '/';
return;
}
console.log(response.message);