mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: electron tray & menu & touchbar supported
This commit is contained in:
parent
249ad01cf1
commit
9db57acb71
11 changed files with 314 additions and 314 deletions
|
|
@ -1,7 +1,15 @@
|
|||
import axios from "axios";
|
||||
|
||||
let baseURL = ''
|
||||
// Web 和 Electron 跑在不同端口避免同时启动时冲突
|
||||
if (process.env.IS_ELECTRON) {
|
||||
baseURL = process.env.VUE_APP_ELECTRON_API_URL
|
||||
} else {
|
||||
baseURL = process.env.VUE_APP_NETEASE_API_URL
|
||||
}
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: process.env.VUE_APP_NETEASE_API_URL,
|
||||
baseURL,
|
||||
withCredentials: true,
|
||||
timeout: 15000,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue