From d9f10055aaafa539a4fd0d62188958fad3b8a8f8 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 1 Jul 2024 11:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1=E7=AE=A1=E7=90=86=E5=8F=91?= =?UTF-8?q?=E4=BB=B6=E9=82=AE=E7=AE=B1=E9=85=8D=E7=BD=AE=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/email-manage/index.vue | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/src/views/trials/trials-panel/setting/email-manage/index.vue b/src/views/trials/trials-panel/setting/email-manage/index.vue index 77750ef6..c6ebeebe 100644 --- a/src/views/trials/trials-panel/setting/email-manage/index.vue +++ b/src/views/trials/trials-panel/setting/email-manage/index.vue @@ -122,11 +122,11 @@ export default { loading: false, isEdit: true, form: { - EmailFromEmail: 'test@extimaging.com', - EmailFromName: 'Test_IRC', - EmailAuthorizationCode: 'SHzyyl2021', - EmailSMTPServerAddress: 'smtp.qiye.aliyun.com', - EmailSMTPServerPort: 465, + EmailFromEmail: '', + EmailFromName: '', + EmailAuthorizationCode: '', + EmailSMTPServerAddress: '', + EmailSMTPServerPort: null, IsConfigureEmail: true }, rules: { @@ -135,12 +135,25 @@ export default { EmailAuthorizationCode: [{ required: true, message: this.$t('common:ruleMessage:specify') }], EmailSMTPServerAddress: [{ required: true, message: this.$t('common:ruleMessage:specify') }], EmailSMTPServerPort: [{ required: true, message: this.$t('common:ruleMessage:select') }] - } + }, + NODE_ENV: process.env.NODE_ENV, } }, - watch: { - activeTab(v) { - console.log(v) + // watch: { + // activeTab(v) { + // console.log(v) + // } + // }, + created() { + if(this.NODE_ENV === 'production'){ + this.form= { + EmailFromEmail: 'test@extimaging.com', + EmailFromName: 'Test_IRC', + EmailAuthorizationCode: 'SHzyyl2021', + EmailSMTPServerAddress: 'smtp.qiye.aliyun.com', + EmailSMTPServerPort: 465, + IsConfigureEmail: true + }; } }, mounted() {