import { makeAutoObservable, runInAction } from "mobx"; import * as req from '../utils/request'; import { prepareUrl } from '../utils/commons'; class Reservation { constructor(root) { makeAutoObservable(this, { rootStore: false }); this.root = root; } fetchRecent() { runInAction(() => { this.reservationList = [ { key: '1', name: '中华游111029-N111025076', age: 32, address: '5大1小', tags: ['nice', 'developer'], }, { key: '2', name: '中华游111030-HY110704017', age: 42, address: '2大', tags: ['loser'], }, { key: '3', name: '中华游111030-Y111004040', age: 32, address: '30大', tags: ['cool', 'teacher'], }, ]; }); } reservationList = [ { key: '1', name: '-', age: 0, address: '-', tags: ['*'], } ]; } export default Reservation;