diff --git a/spug_web/src/pages/home/store.js b/spug_web/src/pages/home/store.js deleted file mode 100644 index 722ea45..0000000 --- a/spug_web/src/pages/home/store.js +++ /dev/null @@ -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()