mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-15 11:18:12 +00:00
no message
This commit is contained in:
parent
caa0fc0a8a
commit
df9eaf6e0a
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -72,7 +72,9 @@ export default {
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
this.loadIng++;
|
||||
setTimeout(_ => {
|
||||
this.loadIng++;
|
||||
}, 600)
|
||||
this.$store.dispatch("call", {
|
||||
url: 'file/one',
|
||||
data,
|
||||
|
||||
@ -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;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user