Skip to content

Commit 8c85a61

Browse files
committed
删除多余状态与代码
1 parent 1545505 commit 8c85a61

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/page/Root.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ class LoginScreenView extends Component {
165165
let totalBytes = (mess.totalBytes / 1024).toFixed(3);
166166
let per = parseInt(receivedBytes / totalBytes * 100);
167167
this.props.showDialog(dialogType.DOWNLOADING_PACKAGE(per));
168-
//this.props.downSchedule(per);
169168
})
170169
.then(LocalPackage => {
171170
InteractionManager.runAfterInteractions(() => {
@@ -186,7 +185,7 @@ class LoginScreenView extends Component {
186185
this.props.showDialog(dialogType.UNKNOWN_ERROR);
187186
setTimeout(() => {
188187
this.props.hideDialog();
189-
}, 1000);
188+
}, 500);
190189
});
191190
});
192191
};

src/redux/actions/dialogType.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ export const UNKNOWN_ERROR = {
2727
...PUBLIC_DIALOG,
2828
children: <UpdateDialog title={'连接异常'} />
2929
};
30-
export const AWAITING_USER_ACTION = {
31-
...PUBLIC_DIALOG,
32-
children: <UpdateDialog title={'等待操作'} />
33-
};
3430
export const UPDATE_INSTALLED = {
3531
...PUBLIC_DIALOG,
3632
children: <UpdateDialog title={'安装并重启'} />

0 commit comments

Comments
 (0)