diff --git a/src/locale/lang/en.js b/src/locale/lang/en.js
index d7ab004..6600412 100644
--- a/src/locale/lang/en.js
+++ b/src/locale/lang/en.js
@@ -68,6 +68,8 @@ export default {
notice: `YesPlayMusic promises not to save any of your account information to the cloud.
Your password will be MD5 encrypted locally and then transmitted to NetEase Music API.
YesPlayMusic is not the official website of NetEase Music, please consider carefully before entering account information. You can also go to YesPlayMusic's GitHub repository to build and use the self-hosted NetEase Music API.`,
+ noticeElectron: `Your password will be MD5 encrypted locally and then transmitted to NetEase Music API.
+ YesPlayMusic promises not to save any of your account information to the cloud.
`,
},
mv: {
moreVideo: "More Videos",
diff --git a/src/locale/lang/zh-CN.js b/src/locale/lang/zh-CN.js
index 8a916c8..3049a60 100644
--- a/src/locale/lang/zh-CN.js
+++ b/src/locale/lang/zh-CN.js
@@ -62,14 +62,15 @@ export default {
login: "登录",
loginWithEmail: "使用邮箱登录",
loginWithPhone: "使用手机号登录",
- notice: `
- YesPlayMusic 承诺不会保存你的任何账号信息到云端。
+ notice: `YesPlayMusic 承诺不会保存你的任何账号信息到云端。
你的密码会在本地进行 MD5 加密后再传输到网易云 API。
YesPlayMusic 并非网易云官方网站,输入账号信息前请慎重考虑。 你也可以前往
YesPlayMusic 的 GitHub 源代码仓库
自行构建并使用自托管的网易云 API。`,
+ noticeElectron: `你的密码会在本地进行 MD5 加密后再传输到网易云 API。
+ YesPlayMusic 不会传输你的账号数据到任何非网易云音乐官方的服务器。
`,
},
mv: {
moreVideo: "更多视频",
diff --git a/src/router/index.js b/src/router/index.js
index 1fcad49..8e2137c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -128,8 +128,11 @@ router.beforeEach((to, from, next) => {
if (isLooseLoggedIn()) {
next();
} else {
- if (process.env.IS_ELECTRON === true) next({ path: "/login/account" });
- next({ path: "/login" });
+ if (process.env.IS_ELECTRON === true) {
+ next({ path: "/login/account" });
+ } else {
+ next({ path: "/login" });
+ }
}
} else {
next();
diff --git a/src/views/loginAccount.vue b/src/views/loginAccount.vue
index 1b34d19..7423f92 100644
--- a/src/views/loginAccount.vue
+++ b/src/views/loginAccount.vue
@@ -79,7 +79,10 @@
$t("login.loginWithPhone")
}}
-