为空判断

This commit is contained in:
李东进1
2023-02-26 13:10:48 +08:00
parent 8735cc38d1
commit a9992f633a

View File

@@ -312,6 +312,9 @@ function cancelPost() {
} }
// 发表帖子发布操作 // 发表帖子发布操作
const postAdd = () => { const postAdd = () => {
if(titleName.value==''){
return ElMessage.warning("评论标题为空");
}
loading.value = ElLoading.service({ loading.value = ElLoading.service({
lock: true, lock: true,
text: "Loading", text: "Loading",