Open Helongzhou opened 5 years ago
Uncaught Error: [mobx] @action cannot be used with getters
here is my code /auth.js `import { observable, action } from 'mobx';
import {post} from '../service/request';
class Auth { @observable login = { userinfo: '' }; /**
const self = new Auth(); export default self;`
你的两个login是重名的
login
Uncaught Error: [mobx] @action cannot be used with getters
here is my code /auth.js `import { observable, action } from 'mobx';
import {post} from '../service/request';
class Auth { @observable login = { userinfo: '' }; /**
const self = new Auth(); export default self;`