mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Fix mixed content when use endpoint for categories list
This commit is contained in:
2
public/assets/css/crater.css
vendored
2
public/assets/css/crater.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"/assets/js/app.js": "/assets/js/app.js?id=a9f802b3fe774e87bf0c",
|
"/assets/js/app.js": "/assets/js/app.js?id=2627360dc47cad16edbc",
|
||||||
"/assets/css/crater.css": "/assets/css/crater.css?id=193e5770a0e7a8604f35"
|
"/assets/css/crater.css": "/assets/css/crater.css?id=cfcef4afc8a1837ad4c1"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import * as types from './mutation-types'
|
|||||||
|
|
||||||
export const fetchCategories = ({ commit, dispatch, state }, data) => {
|
export const fetchCategories = ({ commit, dispatch, state }, data) => {
|
||||||
return new Promise((resolve, reject) => {
|
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)
|
commit(types.SET_CATEGORIES, response.data)
|
||||||
resolve(response)
|
resolve(response)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user