fix: bugs

This commit is contained in:
qier222 2021-04-27 16:51:37 +08:00
parent 9ccce5b468
commit f1e3d8ebf0
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
7 changed files with 54 additions and 23 deletions

View file

@ -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() {

View file

@ -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();
}
},
},
},