File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ const setupDebugInterceptor = axios => {
95
95
'[' + res . config . method . toUpperCase ( ) + ']' ,
96
96
res . config . url )
97
97
98
- if ( process . browser ) {
98
+ if ( process . client ) {
99
99
console . log ( res )
100
100
} else {
101
101
console . log ( JSON . stringify ( res . data , undefined , 2 ) )
@@ -193,7 +193,7 @@ export default (ctx, inject) => {
193
193
// runtimeConfig
194
194
const runtimeConfig = ctx . $config && ctx . $config . axios || { }
195
195
// baseURL
196
- const baseURL = process . browser
196
+ const baseURL = process . client
197
197
? ( runtimeConfig . browserBaseURL || runtimeConfig . browserBaseUrl || runtimeConfig . baseURL || runtimeConfig . baseUrl || '<%= options.browserBaseURL || ' ' %>' )
198
198
: ( runtimeConfig . baseURL || runtimeConfig . baseUrl || process . env . _AXIOS_BASE_URL_ || '<%= options.baseURL || ' ' %>' )
199
199
You can’t perform that action at this time.
0 commit comments