From e7d911393af2b069b3ad587eb5b6e2f0a7ba1002 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 14 Jan 2020 00:29:19 +0800 Subject: [PATCH] U web update --- spug_web/src/pages/home/store.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 spug_web/src/pages/home/store.js 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()