feat: electron tray & menu & touchbar supported

This commit is contained in:
kunkka 2020-10-29 18:46:54 +08:00
parent 249ad01cf1
commit 9db57acb71
11 changed files with 314 additions and 314 deletions

View file

@ -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,
});