Commit 63fdac42 authored by haiyoucuv's avatar haiyoucuv

init

parent c64461b9
......@@ -54,7 +54,7 @@ export class ModalCtrl extends Component<{}, ModalCtrlState> {
const modals = this.state.modals;
modals.push({ key, Component, props, priority })
modals.sort((a, b) => {
return (b.priority || 0) - (a.priority || 0);
return (a.priority || 0) - (b.priority || 0);
});
this.setState({ modals });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment