|
@@ -30,8 +30,9 @@ import BirthdayModal from "./BirthdayModal";
|
|
|
import GradeSelectionModal from "./GradeSelectionModal";
|
|
|
import Header from "./Header";
|
|
|
import PersonalInfoDialog from "./PersonalInfoDialog";
|
|
|
-
|
|
|
+import { NavigationActions, StackActions } from "react-navigation";
|
|
|
type Props = {};
|
|
|
+
|
|
|
export default class PersonalInfo extends BasePage {
|
|
|
state = {
|
|
|
nickName: "初始昵称",
|
|
@@ -632,7 +633,13 @@ export default class PersonalInfo extends BasePage {
|
|
|
}
|
|
|
|
|
|
logout() {
|
|
|
- alert("点击退出了");
|
|
|
+ const resetAction = StackActions.reset({
|
|
|
+ index: 0,
|
|
|
+ actions: [
|
|
|
+ NavigationActions.navigate({ routeName: "Login" }) //要跳转到的页面名字
|
|
|
+ ]
|
|
|
+ });
|
|
|
+ this.props.navigation.dispatch(resetAction);
|
|
|
}
|
|
|
|
|
|
cityscommit(provinces_name, citys_name) {
|