From 55ddb3f8a694bb5d7e0b211e5a46b4f65a418a56 Mon Sep 17 00:00:00 2001 From: mullins <476823686@qq.com> Date: Fri, 15 May 2020 21:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 69 ++++++++++++++++++++++-- src/pages/index/index.vue | 6 ++- src/pages/user/user.vue | 97 ++++++++++++++++++++++++++++++---- src/store/modules/user.js | 132 ++++++++++++++++++++++++++++++++++++++++++++++ src/store/url.js | 13 +++-- 5 files changed, 297 insertions(+), 20 deletions(-) create mode 100644 src/store/modules/user.js diff --git a/src/App.vue b/src/App.vue index a789f9f..62f620c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,70 @@ - diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 0cfd791..35947fb 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -138,8 +138,10 @@ export default { }, onLoad: function() { store.dispatch('test/fetch'); - store.dispatch('categoryOrder/fetch') - + store.dispatch('categoryOrder/fetch') + // 登陆 + // store.dispatch('user/login') + //定时器模拟ajax异步请求数据 setTimeout(()=>{ //传入defaultSelected的结构不能错,错了就报错运行异常。 不选中的项目传入null diff --git a/src/pages/user/user.vue b/src/pages/user/user.vue index 3e90623..8aeec73 100644 --- a/src/pages/user/user.vue +++ b/src/pages/user/user.vue @@ -1,12 +1,11 @@