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

@ -35,6 +35,7 @@
import { mvDetail, mvUrl, simiMv, likeAMV } from '@/api/mv';
import { isAccountLoggedIn } from '@/utils/auth';
import NProgress from 'nprogress';
import locale from '@/locale';
import '@/assets/css/plyr.css';
import Plyr from 'plyr';
@ -116,7 +117,7 @@ export default {
},
likeMV() {
if (!isAccountLoggedIn()) {
this.showToast('此操作需要登录网易云账号');
this.showToast(locale.t('toast.needToLogin'));
return;
}
likeAMV({