Default values for wordpress config.

This commit is contained in:
HenriT
2021-08-26 20:44:13 +03:00
parent 9efef166f8
commit b8032e9809

View File

@ -1,7 +1,7 @@
import axios from 'axios';
import { removeVuexORMFlags } from '@/utils/helpers';
const config = JSON.parse(window.name);
const config = window.name ? JSON.parse(window.name) : { api_url: '', nonce: '' };
const http = axios.create({
baseURL: config.api_url,