mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
feat: change the new Space
This commit is contained in:
@@ -31,7 +31,7 @@ export default class User extends BaseEntity {
|
||||
lastTime: Date = new Date();
|
||||
status: UserStatus = UserStatus.OK;
|
||||
spaceUuid: string | null = null;
|
||||
space: Space | null = null;
|
||||
space: Space = new Space();
|
||||
|
||||
constructor(reactComponent?: React.Component) {
|
||||
super(reactComponent);
|
||||
|
||||
@@ -427,7 +427,7 @@ export default class List extends TankComponent<IProps, IState> {
|
||||
m.spaceUuid = this.getSpaceUuid();
|
||||
|
||||
//判断文件大小。
|
||||
if (this.user.space!.sizeLimit >= 0) {
|
||||
if (this.user.space.sizeLimit >= 0) {
|
||||
if (file.size > this.user.space!.sizeLimit) {
|
||||
MessageBoxUtil.error(
|
||||
Lang.t(
|
||||
|
||||
Reference in New Issue
Block a user