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 @@