From 7319260f31c9a593418ff17b1ca42e0822c3c4eb Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 10 Jan 2024 22:07:04 +0800 Subject: [PATCH] 改正授权码md5加密 bgm链接修改 允许后置日期提交 简介提交支持 --- src/components/group/MyModal.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/group/MyModal.vue b/src/components/group/MyModal.vue index bd193de..00bbada 100644 --- a/src/components/group/MyModal.vue +++ b/src/components/group/MyModal.vue @@ -63,7 +63,7 @@ let tempData = this.$refs.modalBox.form; var param = { introduce: tempData.introduce, - secret: tempData.secret, + secret: tempData.secret == "" ? null : md5(tempData.secret), title: tempData.title, articleTypeId: tempData.class, isOnline: !tempData.online ? 1 : 0, @@ -84,8 +84,13 @@ console.log(param) this.loading = true; blogAdd(param).then((res) => { - this.$message.info("生成日志成功..") - this.visible = false; + + if (res.code == 200) { + this.$message.info("生成日志成功..") + this.visible = false; + } else{ + this.$message.error('生成日志失败:' + res.message) + } this.loading = false; }); // setTimeout(() => { -- Gitblit v1.9.1