mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: bugs
This commit is contained in:
parent
9ccce5b468
commit
f1e3d8ebf0
7 changed files with 54 additions and 23 deletions
|
|
@ -32,6 +32,7 @@ import { mapActions, mapMutations, mapState } from 'vuex';
|
|||
import Modal from '@/components/Modal.vue';
|
||||
import { userPlaylist } from '@/api/user';
|
||||
import { addOrRemoveTrackFromPlaylist } from '@/api/playlist';
|
||||
import { disableScrolling, enableScrolling } from '@/utils/ui';
|
||||
|
||||
export default {
|
||||
name: 'ModalAddTrackToPlaylist',
|
||||
|
|
@ -55,6 +56,11 @@ export default {
|
|||
key: 'show',
|
||||
value,
|
||||
});
|
||||
if (value) {
|
||||
disableScrolling();
|
||||
} else {
|
||||
enableScrolling();
|
||||
}
|
||||
},
|
||||
},
|
||||
ownPlaylists() {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
import Modal from '@/components/Modal.vue';
|
||||
import { mapMutations, mapState } from 'vuex';
|
||||
import { createPlaylist, addOrRemoveTrackFromPlaylist } from '@/api/playlist';
|
||||
import { disableScrolling, enableScrolling } from '@/utils/ui';
|
||||
|
||||
export default {
|
||||
name: 'ModalNewPlaylist',
|
||||
|
|
@ -56,6 +57,11 @@ export default {
|
|||
key: 'show',
|
||||
value,
|
||||
});
|
||||
if (value) {
|
||||
disableScrolling();
|
||||
} else {
|
||||
enableScrolling();
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue