mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 04:46:48 +08:00
为空判断
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user