mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: Add new localizations (#722)
Co-authored-by: bakerbunker <bakerbunker@nwpu.edu.cn>
This commit is contained in:
parent
5869f889f9
commit
347bc1665d
11 changed files with 40 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue