Merge pull request #119 from hypnodev/fix-http-mixed-request

Fix http mixed request
This commit is contained in:
Mohit Panjwani
2020-01-05 13:37:27 +05:30
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ import * as types from './mutation-types'
export const fetchCategories = ({ commit, dispatch, state }, data) => {
return new Promise((resolve, reject) => {
window.axios.get(`/api/categories/`).then((response) => {
window.axios.get(`/api/categories`).then((response) => {
commit(types.SET_CATEGORIES, response.data)
resolve(response)
}).catch((err) => {