no message

This commit is contained in:
kuaifan 2022-06-20 15:18:16 +08:00
parent 43b2b4dc3d
commit 9dd22dba19
12 changed files with 17 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "DooTask", "name": "DooTask",
"version": "0.17.70", "version": "0.17.75",
"description": "DooTask is task management system.", "description": "DooTask is task management system.",
"scripts": { "scripts": {
"start": "./cmd dev", "start": "./cmd dev",
@ -54,7 +54,7 @@
"vue-resize-observer": "^2.0.16", "vue-resize-observer": "^2.0.16",
"vue-router": "^3.5.3", "vue-router": "^3.5.3",
"vue-template-compiler": "^2.6.14", "vue-template-compiler": "^2.6.14",
"vue-virtual-scroll-list-hi": "^2.3.3-3", "vue-virtual-scroll-list-hi": "^2.3.3-4",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"vuex": "^3.6.2", "vuex": "^3.6.2",
"webpack": "^5.69.1", "webpack": "^5.69.1",

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*/ */
/*! /*!
* vue-virtual-scroll-list v2.3.3-2 * vue-virtual-scroll-list v2.3.3-3
* open source under the MIT license * open source under the MIT license
* https://github.com/tangbc/vue-virtual-scroll-list#readme * https://github.com/tangbc/vue-virtual-scroll-list#readme
*/ */

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*/ */
/*! /*!
* vue-virtual-scroll-list v2.3.3-2 * vue-virtual-scroll-list v2.3.3-3
* open source under the MIT license * open source under the MIT license
* https://github.com/tangbc/vue-virtual-scroll-list#readme * https://github.com/tangbc/vue-virtual-scroll-list#readme
*/ */

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*/ */
/*! /*!
* vue-virtual-scroll-list v2.3.3-2 * vue-virtual-scroll-list v2.3.3-3
* open source under the MIT license * open source under the MIT license
* https://github.com/tangbc/vue-virtual-scroll-list#readme * https://github.com/tangbc/vue-virtual-scroll-list#readme
*/ */

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*/ */
/*! /*!
* vue-virtual-scroll-list v2.3.3-2 * vue-virtual-scroll-list v2.3.3-3
* open source under the MIT license * open source under the MIT license
* https://github.com/tangbc/vue-virtual-scroll-list#readme * https://github.com/tangbc/vue-virtual-scroll-list#readme
*/ */

View File

@ -1 +1 @@
b7b6bde638b0e98e 8977f3c856962b02

View File

@ -587,6 +587,7 @@ export default {
id: tempId, id: tempId,
dialog_id: this.dialogData.id, dialog_id: this.dialogData.id,
reply_id: this.replyId, reply_id: this.replyId,
reply_data: this.replyId ? this.dialogMsgs.find(({id}) => id === this.replyId) : null,
type: 'text', type: 'text',
userid: this.userId, userid: this.userId,
msg: { msg: {
@ -604,6 +605,7 @@ export default {
data: { data: {
dialog_id: this.dialogId, dialog_id: this.dialogId,
reply_id: this.replyId, reply_id: this.replyId,
reply_data: this.replyId ? this.dialogMsgs.find(({id}) => id === this.replyId) : null,
text: msgText, text: msgText,
}, },
method: 'post' method: 'post'
@ -629,6 +631,7 @@ export default {
id: tempId, id: tempId,
dialog_id: this.dialogData.id, dialog_id: this.dialogData.id,
reply_id: this.replyId, reply_id: this.replyId,
reply_data: this.replyId ? this.dialogMsgs.find(({id}) => id === this.replyId) : null,
type: 'loading', type: 'loading',
userid: this.userId, userid: this.userId,
msg, msg,
@ -882,6 +885,7 @@ export default {
onToIndex(index) { onToIndex(index) {
const scroller = this.$refs.scroller; const scroller = this.$refs.scroller;
if (scroller) { if (scroller) {
scroller.stopToBottom();
scroller.scrollToIndex(index, -100); scroller.scrollToIndex(index, -100);
requestAnimationFrame(_ => scroller.scrollToIndex(index, -100)) // requestAnimationFrame(_ => scroller.scrollToIndex(index, -100)) //
} }
@ -891,6 +895,7 @@ export default {
onToOffset(offset) { onToOffset(offset) {
const scroller = this.$refs.scroller; const scroller = this.$refs.scroller;
if (scroller) { if (scroller) {
scroller.stopToBottom();
scroller.scrollToOffset(offset); scroller.scrollToOffset(offset);
setTimeout(_ => scroller.scrollToOffset(offset), 10) // setTimeout(_ => scroller.scrollToOffset(offset), 10) //
} }

@ -1 +1 @@
Subproject commit 8d4ff1850bab8f4db63d921ac7115c32fc87c3ac Subproject commit 4184b5d945a21bb7afe137cdc2a7a0d6ded88cd2