From 660af5b8e1f4b8d30a7ac13f1d7f5ffc773517d1 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 27 Nov 2020 09:46:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=B0=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/en.ts | 1 + src/i18n/zh.ts | 1 + src/utils/common.ts | 6 ++---- src/views/mine/ReleaseWebcast.vue | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index b6a5a81..02d4fbb 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -139,6 +139,7 @@ export default { shuruzhiborenshu: "Please input the number of live broadcast", zhibojianjie: "Text introduction", shuruzhibojianjie: "Please enter your live broadcast profile", + fabuzhibob: "Submit", fabuzhibo: "Live Class", wuzhibozige: "You are not eligible for live broadcast", yijianfankui: "Feedback", diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index fd34efa..a26e822 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -143,6 +143,7 @@ export default { zhibojianjie:"直播简介", shuruzhibojianjie:"请输入您的直播简介", fabuzhibo:"发布直播", + fabuzhibob:"发布直播", wuzhibozige:"您尚未获得直播资格", yijianfankui:"意见反馈", fen:"分", diff --git a/src/utils/common.ts b/src/utils/common.ts index b6b2177..fb48bca 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -73,15 +73,13 @@ export function provenimg(file: any): boolean | void{ message.error(lan.$t('zuida') + "2MB") return false; } - let istype = false for(const i in type){ if(type[i] == ntype){ - istype = true + return true } } message.error(lan.$t("leixingcuowu")) - console.log(istype) - return istype; + return false; } /** diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index e0efa68..da77559 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -174,7 +174,7 @@ {{ form.desc.length }}/200 - {{ lan.$t("fabuzhibo") }} + {{ lan.$t("fabuzhibob") }} {{ lan.$t("quxiaozhibo") }}