mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 14:18:03 +00:00
feat(electron): add minimize to tray option to settings page
This commit is contained in:
parent
09c54486cc
commit
de7d008c0b
8 changed files with 67 additions and 13 deletions
|
|
@ -7,10 +7,15 @@ import { changeAppearance } from "@/utils/common";
|
|||
import Player from "@/utils/Player";
|
||||
// vuex 自定义插件
|
||||
import saveToLocalStorage from "./plugins/localStorage";
|
||||
import { getSendSettingsPlugin } from "./plugins/sendSettings";
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
let plugins = [saveToLocalStorage];
|
||||
if (process.env.IS_ELECTRON === true) {
|
||||
let sendSettings = getSendSettingsPlugin();
|
||||
plugins.push(sendSettings);
|
||||
}
|
||||
const options = {
|
||||
state,
|
||||
mutations,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue