File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 - name : Build/release Electron app
8282 uses : samuelmeuli/action-electron-builder@v1.6.0
8383 env :
84+ VUE_APP_NETEASE_API_URL : /api
8485 VUE_APP_ELECTRON_API_URL : /api
8586 VUE_APP_ELECTRON_API_URL_DEV : http://127.0.0.1:10754
8687 VUE_APP_LASTFM_API_KEY : 09c55292403d961aa517ff7f5e8a3d9c
Original file line number Diff line number Diff line change @@ -57,8 +57,16 @@ service.interceptors.response.use(
5757 } ,
5858 async error => {
5959 /** @type {import('axios').AxiosResponse | null } */
60- const response = error . response ;
61- const data = response . data ;
60+ let response ;
61+ let data ;
62+ if ( error === 'TypeError: baseURL is undefined' ) {
63+ response = error ;
64+ data = error ;
65+ console . error ( "You must set up the baseURL in the service's config" ) ;
66+ } else if ( error . response ) {
67+ response = error . response ;
68+ data = response . data ;
69+ }
6270
6371 if (
6472 response &&
You can’t perform that action at this time.
0 commit comments