U web update

pull/22/head
vapao 2020-01-14 00:29:19 +08:00
parent a206ee05d7
commit e7d911393a
1 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
import {observable} from "mobx";
import http from '../../libs/http';
class Store {
@observable info = {};
@observable isFetching = false;
fetchInfo =() => {
this.isFetching = true;
http.get('/api/home/')
.then(res => this.info = res)
.finally(() => this.isFetching = false)
};
}
export default new Store()