fix: bugs

This commit is contained in:
qier222 2021-06-09 20:53:33 +08:00
parent e54c606c6d
commit f3076f21b2
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
13 changed files with 32 additions and 36 deletions

View file

@ -32,7 +32,6 @@ import { mapActions, mapMutations, mapState } from 'vuex';
import Modal from '@/components/Modal.vue';
import locale from '@/locale';
import { addOrRemoveTrackFromPlaylist } from '@/api/playlist';
import { disableScrolling, enableScrolling } from '@/utils/ui';
export default {
name: 'ModalAddTrackToPlaylist',
@ -57,9 +56,9 @@ export default {
value,
});
if (value) {
disableScrolling();
this.$store.commit('enableScrolling', false);
} else {
enableScrolling();
this.$store.commit('enableScrolling', true);
}
},
},