fix: Add new localizations (#722)

Co-authored-by: bakerbunker <bakerbunker@nwpu.edu.cn>
This commit is contained in:
BakerBunker 2021-05-30 18:25:35 +08:00 committed by GitHub
parent 5869f889f9
commit 347bc1665d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 40 additions and 17 deletions

View file

@ -30,6 +30,7 @@
<script>
import Modal from '@/components/Modal.vue';
import locale from '@/locale';
import { mapMutations, mapState, mapActions } from 'vuex';
import { createPlaylist, addOrRemoveTrackFromPlaylist } from '@/api/playlist';
import { disableScrolling, enableScrolling } from '@/utils/ui';
@ -86,7 +87,7 @@ export default {
tracks: this.modals.newPlaylistModal.afterCreateAddTrackID,
}).then(data => {
if (data.body.code === 200) {
this.showToast('已添加到歌单');
this.showToast(locale.t('toast.savedToPlaylist'));
} else {
this.showToast(data.body.message);
}