You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GHHub/src/stores/Reservation.js

51 lines
1.0 KiB
JavaScript

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;