File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function postAPI (command, data = {}) {
4747 params . append ( 'response' , 'json' )
4848 if ( data ) {
4949 Object . entries ( data ) . forEach ( ( [ key , value ] ) => {
50- if ( value !== undefined ) {
50+ if ( value !== undefined && value !== null ) {
5151 params . append ( key , value )
5252 }
5353 } )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import {
4444import { VueAxios } from './utils/request'
4545import directives from './utils/directives'
4646import Cookies from 'js-cookie'
47- import { api } from '@/api'
47+ import { getAPI } from '@/api'
4848import { applyCustomGuiTheme } from './utils/guiTheme'
4949
5050vueApp . use ( VueAxios , router )
@@ -106,7 +106,7 @@ fetch('config.json?ts=' + Date.now())
106106 let domainid = null
107107
108108 if ( userid !== undefined && Cookies . get ( 'sessionkey' ) ) {
109- await api ( 'listUsers' , { userid : userid } ) . then ( response => {
109+ await getAPI ( 'listUsers' , { userid : userid } ) . then ( response => {
110110 accountid = response . listusersresponse . user [ 0 ] . accountid
111111 domainid = response . listusersresponse . user [ 0 ] . domainid
112112 } )
Original file line number Diff line number Diff line change 1616// under the License.
1717
1818import { vueProps } from '@/vue-app'
19- import { api } from '@/api'
19+ import { getAPI } from '@/api'
2020
2121export async function applyCustomGuiTheme ( accountid , domainid ) {
2222 await fetch ( 'config.json' ) . then ( response => response . json ( ) ) . then ( config => {
@@ -45,7 +45,7 @@ export async function applyCustomGuiTheme (accountid, domainid) {
4545}
4646
4747async function fetchGuiTheme ( params ) {
48- return await api ( 'listGuiThemes' , params ) . then ( response => {
48+ return await getAPI ( 'listGuiThemes' , params ) . then ( response => {
4949 if ( response . listguithemesresponse . guiThemes ) {
5050 return response . listguithemesresponse . guiThemes [ 0 ]
5151 }
You can’t perform that action at this time.
0 commit comments