mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2026-05-19 13:48:13 +00:00
修改时输入框的value要trim
This commit is contained in:
@@ -13,7 +13,7 @@ const onClose = () => {
|
||||
}
|
||||
|
||||
const onComfirm = () => {
|
||||
emit('confirm', inputValue.value)
|
||||
emit('confirm', inputValue.value.trim())
|
||||
}
|
||||
|
||||
watch([() => props.isShow, () => props.defaultInput], ([newIsShow, newDefaultInput]) => {
|
||||
|
||||
@@ -31,11 +31,11 @@ const onClickEditMark = () => {
|
||||
}
|
||||
|
||||
const saveMark = () => {
|
||||
if (newMark.value !== props.session.mark) {
|
||||
if (newMark.value.trim() !== props.session.mark) {
|
||||
const sessionId = props.session.sessionId
|
||||
messageData.updateSession({
|
||||
sessionId: sessionId,
|
||||
mark: newMark.value
|
||||
mark: newMark.value.trim()
|
||||
})
|
||||
}
|
||||
markEditing.value = false
|
||||
|
||||
@@ -72,10 +72,10 @@ const onClickEditMark = () => {
|
||||
}
|
||||
|
||||
const saveMark = () => {
|
||||
if (newMark.value !== mark.value) {
|
||||
if (newMark.value.trim() !== mark.value) {
|
||||
messageData.updateSession({
|
||||
sessionId: sessionId.value,
|
||||
mark: newMark.value
|
||||
mark: newMark.value.trim()
|
||||
})
|
||||
}
|
||||
markEditing.value = false
|
||||
|
||||
Reference in New Issue
Block a user