|
|
|
@ -339,8 +339,7 @@ export const actions = {
|
|
|
|
|
// result = await state.sqlMgr.sqlOpPlus(args, op, opArgs);
|
|
|
|
|
result = (await this.$axios({ |
|
|
|
|
url: '?q=sqlOpPlus_' + op, |
|
|
|
|
baseURL: process.env.NODE_ENV === 'production' ? './' : 'http://localhost:8080/dashboard', |
|
|
|
|
// baseURL: 'http://localhost:8080/dashboard',
|
|
|
|
|
baseURL: `${this.$axios.defaults.baseURL}/dashboard`, |
|
|
|
|
data: {api: op, ...args, ...params, args: opArgs, sqlOpPlus: true}, |
|
|
|
|
headers, |
|
|
|
|
method: 'post' |
|
|
|
@ -377,8 +376,7 @@ export const actions = {
|
|
|
|
|
} |
|
|
|
|
return (await this.$axios({ |
|
|
|
|
url: '?q=sqlOp_' + op, |
|
|
|
|
baseURL: process.env.NODE_ENV === 'production' ? './' : 'http://localhost:8080/dashboard', |
|
|
|
|
// baseURL: 'http://localhost:8080/dashboard',
|
|
|
|
|
baseURL: `${this.$axios.defaults.baseURL}/dashboard`, |
|
|
|
|
data: {api: op, ...args, ...params, args: opArgs}, |
|
|
|
|
headers, |
|
|
|
|
method: 'post', |
|
|
|
@ -423,8 +421,7 @@ export const actions = {
|
|
|
|
|
|
|
|
|
|
return (await this.$axios({ |
|
|
|
|
url: '?q=sqlOp_' + op, |
|
|
|
|
baseURL: process.env.NODE_ENV === 'production' ? './' : 'http://localhost:8080/dashboard', |
|
|
|
|
// baseURL: 'http://localhost:8080/dashboard',
|
|
|
|
|
baseURL: `${$this.axios.defaults.baseURL}/dashboard`, |
|
|
|
|
data: formData, //{api: op, ...args, args: opArgs},
|
|
|
|
|
headers, |
|
|
|
|
method: 'post', |
|
|
|
@ -445,6 +442,7 @@ export const actions = {
|
|
|
|
|
* |
|
|
|
|
* @author Naveen MR <oof1lab@gmail.com> |
|
|
|
|
* @author Pranav C Balan <pranavxc@gmail.com> |
|
|
|
|
* @author Wing-Kam Wong <wingkwong.code@gmail.com> |
|
|
|
|
* |
|
|
|
|
* @license GNU AGPL version 3 or any later version |
|
|
|
|
* |
|
|
|
|