no message

This commit is contained in:
kuaifan 2022-06-12 19:07:47 +08:00
parent caa0fc0a8a
commit df9eaf6e0a
7 changed files with 21 additions and 9 deletions

View File

@ -431,7 +431,7 @@ export default {
url: 'web.js',
params: {
titleFixed: true,
url: $A.eeuiAppRewriteUrl(`../public/index.html#${uri}`)
url: $A.rightDelete(window.location.href, window.location.hash) + `#${uri}`
},
});
} else {

View File

@ -205,7 +205,7 @@ export default {
url: 'web.js',
params: {
titleFixed: true,
url: $A.eeuiAppRewriteUrl(`../public/index.html#${uri}`)
url: $A.rightDelete(window.location.href, window.location.hash) + `#${uri}`
},
});
} else {

View File

@ -1308,7 +1308,7 @@ export default {
url: 'web.js',
params: {
titleFixed: true,
url: $A.eeuiAppRewriteUrl(`../public/index.html#${uri}`)
url: $A.rightDelete(window.location.href, window.location.hash) + `#${uri}`
},
});
} else {

View File

@ -1030,7 +1030,7 @@ export default {
url: 'web.js',
params: {
titleFixed: true,
url: $A.eeuiAppRewriteUrl(`../public/index.html#${uri}`)
url: $A.rightDelete(window.location.href, window.location.hash) + `#${uri}`
},
});
} else {

View File

@ -72,7 +72,9 @@ export default {
} else {
return;
}
this.loadIng++;
setTimeout(_ => {
this.loadIng++;
}, 600)
this.$store.dispatch("call", {
url: 'file/one',
data,

View File

@ -2,7 +2,7 @@
<div class="single-file-msg">
<PageTitle :title="title"/>
<Loading v-if="loadIng > 0"/>
<template v-else>
<template v-else-if="!isWait">
<MDPreview v-if="isType('md')" :initialValue="msgDetail.content.content"/>
<TEditor v-else-if="isType('text')" :value="msgDetail.content.content" height="100%" readOnly/>
<Drawio v-else-if="isType('drawio')" v-model="msgDetail.content" :title="msgDetail.msg.name" readOnly/>
@ -80,6 +80,7 @@ export default {
data() {
return {
loadIng: 0,
isWait: false,
msgDetail: {},
}
@ -139,7 +140,10 @@ export default {
if (this.msgId <= 0) {
return;
}
this.loadIng++;
setTimeout(_ => {
this.loadIng++;
}, 600)
this.isWait = true;
this.$store.dispatch("call", {
url: 'dialog/msg/detail',
data: {
@ -158,6 +162,7 @@ export default {
});
}).finally(_ => {
this.loadIng--;
this.isWait = false;
});
},

View File

@ -2,7 +2,7 @@
<div class="single-file-task">
<PageTitle :title="title"/>
<Loading v-if="loadIng > 0"/>
<template v-else>
<template v-else-if="!isWait">
<MDPreview v-if="isType('md')" :initialValue="fileDetail.content.content"/>
<TEditor v-else-if="isType('text')" :value="fileDetail.content.content" height="100%" readOnly/>
<Drawio v-else-if="isType('drawio')" v-model="fileDetail.content" :title="fileDetail.name" readOnly/>
@ -69,6 +69,7 @@ export default {
data() {
return {
loadIng: 0,
isWait: false,
fileDetail: {},
}
@ -126,7 +127,10 @@ export default {
if (this.fileId <= 0) {
return;
}
this.loadIng++;
setTimeout(_ => {
this.loadIng++;
}, 600)
this.isWait = true;
this.$store.dispatch("call", {
url: 'project/task/filedetail',
data: {
@ -145,6 +149,7 @@ export default {
});
}).finally(_ => {
this.loadIng--;
this.isWait = false;
});
},
documentKey() {