mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-28 08:21:08 -04:00
Default values for wordpress config.
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { removeVuexORMFlags } from '@/utils/helpers';
|
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({
|
const http = axios.create({
|
||||||
baseURL: config.api_url,
|
baseURL: config.api_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user