|
|
@@ -72,15 +72,15 @@ export const actions = {
|
|
|
})
|
|
|
},
|
|
|
// 获取轮播配置
|
|
|
- // loadBanners ({ commit }) {
|
|
|
- // commit('carousel/REQUEST_BANNER')
|
|
|
- // return axios.get('/api/carousel/home%20page%20banner')
|
|
|
- // .then(response => {
|
|
|
- // commit('carousel/GET_BANNER_SUCCESS', response.data)
|
|
|
- // }, err => {
|
|
|
- // commit('carousel/GET_BANNER_FAILURE', err)
|
|
|
- // })
|
|
|
- // },
|
|
|
+ loadBanners ({ commit }) {
|
|
|
+ commit('carousel/REQUEST_BANNER')
|
|
|
+ return axios.get('/api/carousel/home%20page%20banner')
|
|
|
+ .then(response => {
|
|
|
+ commit('carousel/GET_BANNER_SUCCESS', response.data)
|
|
|
+ }, err => {
|
|
|
+ commit('carousel/GET_BANNER_FAILURE', err)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取子器件类目
|
|
|
loadProductKinds ({ commit }, params = {}) {
|
|
|
let id = params.id
|