mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-27 20:30:32 +00:00
修复转发没有选择转发人也可以提交
This commit is contained in:
parent
d456ea68f7
commit
2f649c0a9e
@ -646,6 +646,10 @@ class DialogController extends AbstractController
|
||||
if (empty($msg)) {
|
||||
return Base::retError("消息不存在或已被删除");
|
||||
}
|
||||
if (empty($userids)) {
|
||||
return Base::retError("请选择转发成员");
|
||||
}
|
||||
//
|
||||
return $msg->forwardMsg($userids, $user->userid);
|
||||
}
|
||||
|
||||
|
||||
@ -785,6 +785,10 @@ export default {
|
||||
};
|
||||
this.forwardShow = true;
|
||||
} else if (type === 'submit') {
|
||||
if ($A.arrayLength(this.forwardData.userids) === 0) {
|
||||
$A.messageWarning("请选择转发成员");
|
||||
return
|
||||
}
|
||||
this.forwardLoad = true;
|
||||
this.$store.dispatch("call", {
|
||||
url: 'dialog/msg/forward',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user