feat: change the new Space

This commit is contained in:
lishuang
2023-07-22 20:17:55 +08:00
parent 9c79130cea
commit 51d4ae089f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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(