Skip to content

Commit a99b56c

Browse files
authored
refactor: replace process.browser with process.client (#516)
1 parent 81be741 commit a99b56c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const setupDebugInterceptor = axios => {
9595
'[' + res.config.method.toUpperCase() + ']',
9696
res.config.url)
9797

98-
if (process.browser) {
98+
if (process.client) {
9999
console.log(res)
100100
} else {
101101
console.log(JSON.stringify(res.data, undefined, 2))
@@ -193,7 +193,7 @@ export default (ctx, inject) => {
193193
// runtimeConfig
194194
const runtimeConfig = ctx.$config && ctx.$config.axios || {}
195195
// baseURL
196-
const baseURL = process.browser
196+
const baseURL = process.client
197197
? (runtimeConfig.browserBaseURL || runtimeConfig.browserBaseUrl || runtimeConfig.baseURL || runtimeConfig.baseUrl || '<%= options.browserBaseURL || '' %>')
198198
: (runtimeConfig.baseURL || runtimeConfig.baseUrl || process.env._AXIOS_BASE_URL_ || '<%= options.baseURL || '' %>')
199199

0 commit comments

Comments
 (0)