页面加载的平滑效果添加
This commit is contained in:
parent
a4729f7b5c
commit
4073d23d66
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ant-design-pro",
|
"name": "ant-design-pro",
|
||||||
"version": "4.5.50",
|
"version": "4.5.51",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "An out-of-box UI solution for enterprise applications",
|
"description": "An out-of-box UI solution for enterprise applications",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -28,28 +28,31 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
|
|||||||
const { location } = history
|
const { location } = history
|
||||||
|
|
||||||
const { dispatch } = this.props;
|
const { dispatch } = this.props;
|
||||||
if(dispatch) {
|
if (dispatch) {
|
||||||
|
|
||||||
dispatch({ type: 'user/fetch',callback:(user)=>{
|
dispatch({
|
||||||
|
type: 'user/fetch', callback: (user) => {
|
||||||
|
|
||||||
if(user.code && location.pathname !== '/user/login') {
|
if (user.code && location.pathname !== '/user/login') {
|
||||||
history.push('/user/login');
|
history.push('/user/login');
|
||||||
return
|
return
|
||||||
}
|
|
||||||
console.log('secur')
|
|
||||||
dispatch({ type: 'global/getMenuData', payload: user.ID, callback:(menu)=>{
|
|
||||||
if(menu){
|
|
||||||
|
|
||||||
this.setState({
|
|
||||||
isReady: true,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
console.log('secur')
|
||||||
|
dispatch({
|
||||||
|
type: 'global/getMenuData', payload: user.ID, callback: (menu) => {
|
||||||
|
if (menu) {
|
||||||
|
|
||||||
|
this.setState({
|
||||||
|
isReady: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
} })
|
} else {
|
||||||
|
|
||||||
} else {
|
|
||||||
this.setState({
|
this.setState({
|
||||||
isReady: true,
|
isReady: true,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1524,18 +1524,11 @@ const SHOPEXPENSETablePage: React.FC<{
|
|||||||
// ]}
|
// ]}
|
||||||
fieldProps={{
|
fieldProps={{
|
||||||
beforeUpload: (file, files) => {
|
beforeUpload: (file, files) => {
|
||||||
console.log('file', file);
|
|
||||||
|
|
||||||
console.log('filesbeforeUpload', files);
|
|
||||||
|
|
||||||
setFileList([...fileList, ...files])
|
setFileList([...fileList, ...files])
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
console.log('info', info);
|
|
||||||
console.log('fileList', fileList);
|
|
||||||
|
|
||||||
|
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
// 如果在待上传列表中找到,则说明当前图片没有上传服务器,可直接删除
|
// 如果在待上传列表中找到,则说明当前图片没有上传服务器,可直接删除
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// 由 scripts/writeVersion.js 自动生成
|
// 由 scripts/writeVersion.js 自动生成
|
||||||
export const VERSION = "4.5.50";
|
export const VERSION = "4.5.51";
|
||||||
export const GIT_HASH = "169c5fa";
|
export const GIT_HASH = "a4729f7";
|
||||||
export const BUILD_TIME = "2025-09-05T11:01:12.391Z";
|
export const BUILD_TIME = "2025-09-08T03:14:16.308Z";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user