no message

This commit is contained in:
kuaifan
2022-06-20 15:21:26 +08:00
parent 43b2b4dc3d
commit 9dd22dba19
12 changed files with 17 additions and 12 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.17.70",
"version": "0.17.75",
"description": "DooTask is task management system.",
"scripts": {
"start": "./cmd dev",
@@ -54,7 +54,7 @@
"vue-resize-observer": "^2.0.16",
"vue-router": "^3.5.3",
"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",
"vuex": "^3.6.2",
"webpack": "^5.69.1",
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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
* https://github.com/tangbc/vue-virtual-scroll-list#readme
*/
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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
* https://github.com/tangbc/vue-virtual-scroll-list#readme
*/
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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
* https://github.com/tangbc/vue-virtual-scroll-list#readme
*/
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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
* https://github.com/tangbc/vue-virtual-scroll-list#readme
*/
+1 -1
View File
@@ -1 +1 @@
b7b6bde638b0e98e
8977f3c856962b02
@@ -587,6 +587,7 @@ export default {
id: tempId,
dialog_id: this.dialogData.id,
reply_id: this.replyId,
reply_data: this.replyId ? this.dialogMsgs.find(({id}) => id === this.replyId) : null,
type: 'text',
userid: this.userId,
msg: {
@@ -604,6 +605,7 @@ export default {
data: {
dialog_id: this.dialogId,
reply_id: this.replyId,
reply_data: this.replyId ? this.dialogMsgs.find(({id}) => id === this.replyId) : null,
text: msgText,
},
method: 'post'
@@ -629,6 +631,7 @@ export default {
id: tempId,
dialog_id: this.dialogData.id,
reply_id: this.replyId,
reply_data: this.replyId ? this.dialogMsgs.find(({id}) => id === this.replyId) : null,
type: 'loading',
userid: this.userId,
msg,
@@ -882,6 +885,7 @@ export default {
onToIndex(index) {
const scroller = this.$refs.scroller;
if (scroller) {
scroller.stopToBottom();
scroller.scrollToIndex(index, -100);
requestAnimationFrame(_ => scroller.scrollToIndex(index, -100)) // 确保滚动到
}
@@ -891,6 +895,7 @@ export default {
onToOffset(offset) {
const scroller = this.$refs.scroller;
if (scroller) {
scroller.stopToBottom();
scroller.scrollToOffset(offset);
setTimeout(_ => scroller.scrollToOffset(offset), 10) // 预防出现白屏的情况
}