diff --git a/netease_api/routes/index.js b/netease_api/routes/index.js
index 2ce4e88..4014cd0 100644
--- a/netease_api/routes/index.js
+++ b/netease_api/routes/index.js
@@ -1,4 +1,5 @@
const { cookieToJson } = require('../util/index');
+const crypto = require('crypto');
const request = require('../util/request');
module.exports = {
'/yunbei/today': (req, res) => {
diff --git a/src/App.vue b/src/App.vue
index 3c0c560..c252bbf 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -18,8 +18,8 @@
"
/>
-
-
+
+
@@ -30,6 +30,7 @@ import Navbar from "./components/Navbar.vue";
import Player from "./components/Player.vue";
import Toast from "./components/Toast.vue";
import { ipcRenderer } from "./electron/ipcRenderer";
+import { isAccountLoggedIn } from "@/utils/auth";
export default {
name: "App",
@@ -45,6 +46,11 @@ export default {
isElectron: process.env.IS_ELECTRON, // true || undefined
};
},
+ computed: {
+ isAccountLoggedIn() {
+ return isAccountLoggedIn();
+ },
+ },
created() {
if (this.isElectron) {
ipcRenderer(this);
diff --git a/src/background.js b/src/background.js
index 8d2b105..b5deff4 100644
--- a/src/background.js
+++ b/src/background.js
@@ -1,7 +1,6 @@
"use strict";
import { app, protocol, BrowserWindow, shell, dialog } from "electron";
import { createProtocol } from "vue-cli-plugin-electron-builder/lib";
-import installExtension, { VUEJS_DEVTOOLS } from "electron-devtools-installer";
import { startNeteaseMusicApi } from "./electron/services";
import { initIpcMain } from "./electron/ipcMain.js";
import { createMenu } from "./electron/menu";
@@ -9,6 +8,7 @@ import { createTray } from "@/electron/tray";
import { createTouchBar } from "./electron/touchBar";
import { createDockMenu } from "./electron/dockMenu";
import { autoUpdater } from "electron-updater";
+import installExtension, { VUEJS_DEVTOOLS } from "electron-devtools-installer";
import express from "express";
import expressProxy from "express-http-proxy";
import Store from "electron-store";
@@ -91,8 +91,8 @@ class Background {
this.window = new BrowserWindow({
width: this.store.get("window.width") | 1440,
height: this.store.get("window.height") | 840,
- minWidth: 768,
- minHeight: 608,
+ minWidth: 1080,
+ minHeight: 720,
titleBarStyle: "hiddenInset",
webPreferences: {
webSecurity: false,
diff --git a/src/components/CoverRow.vue b/src/components/CoverRow.vue
index bad722e..8f935cb 100644
--- a/src/components/CoverRow.vue
+++ b/src/components/CoverRow.vue
@@ -6,11 +6,7 @@
:key="item.id"
:class="{ artist: type === 'artist' }"
>
-
+
@@ -81,6 +82,14 @@ export default {
type: Number,
default: 4,
},
+ highlightPlayingTrack: {
+ type: Boolean,
+ default: true,
+ },
+ itemKey: {
+ type: String,
+ default: "id",
+ },
},
data() {
return {
diff --git a/src/components/TrackListItem.vue b/src/components/TrackListItem.vue
index b136b70..f758b3a 100644
--- a/src/components/TrackListItem.vue
+++ b/src/components/TrackListItem.vue
@@ -8,7 +8,7 @@
@mouseleave="hover = false"
>