mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 05:08:04 +00:00
Merge pull request #2193 from rainbowflesh/master
fix github action missing env
This commit is contained in:
commit
87ef48b826
2 changed files with 11 additions and 2 deletions
1
.github/workflows/build.yaml
vendored
1
.github/workflows/build.yaml
vendored
|
|
@ -81,6 +81,7 @@ jobs:
|
||||||
- name: Build/release Electron app
|
- name: Build/release Electron app
|
||||||
uses: samuelmeuli/action-electron-builder@v1.6.0
|
uses: samuelmeuli/action-electron-builder@v1.6.0
|
||||||
env:
|
env:
|
||||||
|
VUE_APP_NETEASE_API_URL: /api
|
||||||
VUE_APP_ELECTRON_API_URL: /api
|
VUE_APP_ELECTRON_API_URL: /api
|
||||||
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:10754
|
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:10754
|
||||||
VUE_APP_LASTFM_API_KEY: 09c55292403d961aa517ff7f5e8a3d9c
|
VUE_APP_LASTFM_API_KEY: 09c55292403d961aa517ff7f5e8a3d9c
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,16 @@ service.interceptors.response.use(
|
||||||
},
|
},
|
||||||
async error => {
|
async error => {
|
||||||
/** @type {import('axios').AxiosResponse | null} */
|
/** @type {import('axios').AxiosResponse | null} */
|
||||||
const response = error.response;
|
let response;
|
||||||
const data = response.data;
|
let data;
|
||||||
|
if (error === 'TypeError: baseURL is undefined') {
|
||||||
|
response = error;
|
||||||
|
data = error;
|
||||||
|
console.error("You must set up the baseURL in the service's config");
|
||||||
|
} else if (error.response) {
|
||||||
|
response = error.response;
|
||||||
|
data = response.data;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
response &&
|
response &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue