mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 07:51:08 -04:00
Default values for wordpress config.
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user