Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

ds147000 / react-native-project-storage

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • react-native-project-storage
  • src
  • store
  • modules
  • user.js
  • GGbong's avatar
    移动开发基础环境 · 8ce4d157
    GGbong committed May 26, 2020
    8ce4d157 Browse Directory
user.js 360 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
export default {
    // 数据
    state: {
        userInfo: false,
        user: {
            name: '',
            phone: ''
        }
    },
    // 同步
    reducers: {
        loginSuccess(state, user) {
            return {
                userInfo: true,
                user: user
            }
        }
    },
    // 异步
    effects: {

    }
}