123456789101112131415 |
- // import config from '@/common/config.js'
- export default {
- userInfo: state => state.app.userInfo || {},
- // 是否登录
- isLogin: state => {
- // return uni.getStorageSync(config.const.access_token)
- if(state.app.userInfo && Object.keys(state.app.userInfo).length > 0) {
- return true
- }
- return false
- },
- date2TimeStr: state => state.app.data2Time || '',
- photosSyncStr: state => state.app.photosSync || ''
- }
|