修复alert

This commit is contained in:
cxykevin 2024-09-16 18:14:54 +08:00
parent 0c17e99f53
commit ec14f305cb
1 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@
}
function send_msg() {
if (document.getElementById("input-card").value.length < 10) {
window.parent.alert("评论内容不能少于10个字")
alert("评论内容不能少于10个字")
return
}
if (logined == 0) {
@ -243,7 +243,7 @@
if (xhr.readyState == 4 && xhr.status == 200) {
var obj = JSON.parse(xhr.responseText);
if (obj.code == 1) {
window.parent.alert(obj.msg)
alert(obj.msg)
document.getElementsByClassName("send-btn")[0].removeAttribute("loading")
return
}