mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: add like albums & follow artists function
This commit is contained in:
parent
81ec2fe6b9
commit
2f41e0237d
28 changed files with 461 additions and 145 deletions
|
|
@ -118,7 +118,7 @@ const router = new VueRouter({
|
|||
router.beforeEach((to, from, next) => {
|
||||
// 需要登录的逻辑
|
||||
if (to.meta.requireLogin) {
|
||||
if (store.state.settings.user.nickname === undefined) {
|
||||
if (store.state.data.user.nickname === undefined) {
|
||||
next({ path: "/login" });
|
||||
}
|
||||
if (isLooseLoggedIn()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue