修复配置文件

pull/701/head
miaowuawa 1 year ago
parent b7458eb122
commit 97edac97a9

@ -48,7 +48,7 @@ func (s *securitySrv) UsePhoneCaptcha(captcha *ms.Captcha) error {
// SendPhoneCaptcha 发送短信验证码 // SendPhoneCaptcha 发送短信验证码
func (s *securitySrv) SendPhoneCaptcha(phone string) error { func (s *securitySrv) SendPhoneCaptcha(phone string) error {
expire := time.Duration(5) expire := 5 * time.Minute
// 发送验证码 // 发送验证码
captcha := strconv.Itoa(s.rand.Intn(900000) + 100000) captcha := strconv.Itoa(s.rand.Intn(900000) + 100000)

@ -616,7 +616,8 @@ const submitPost = () => {
imageContents.value = []; imageContents.value = [];
videoContents.value = []; videoContents.value = [];
attachmentContents.value = []; attachmentContents.value = [];
visitType.value = defaultVisitType.value; // 始终将可见性重置为"公开"
visitType.value = VisibilityEnum.PUBLIC;
}) })
.catch((err) => { .catch((err) => {
submitting.value = false; submitting.value = false;
@ -637,7 +638,8 @@ onMounted(() => {
} else { } else {
defaultVisitType.value = VisibilityEnum.PRIVATE; defaultVisitType.value = VisibilityEnum.PRIVATE;
} }
visitType.value = defaultVisitType.value; // 始终将可见性设置为"公开"
visitType.value = VisibilityEnum.PUBLIC;
}); });
</script> </script>

Loading…
Cancel
Save