代码整理

This commit is contained in:
ChenXinXin committed 2024-05-20 17:05:50 +08:00
1 parent 0f1c3b51e5
commit 1f99dcd134
6 files changed
+97 -111

No files matched your search

+7 -7
View File
@@ -72,7 +72,7 @@
</div>
<div class="jianghu-doc-contentDoc-main-doc">
<div class="markdown-body editormd-preview-container jianghu-markdown" id="doc-content">
<h1 id="links-0">{{article.taskTitle}}</h1>
<h1 id="links-0">{{article.afficheTitle}}</h1>
<!-- 封面 -->
<template v-if="article.articleCoverImage">
<div class="items-center-box" style="margin-bottom: 20px">
@@ -90,7 +90,7 @@
<video :src="resourceUrl(article.articleVideoUrl)" style="width: 100%; height: auto" controls
preload="none"></video>
</template>
<md2html :article-content="article.taskContent"></md2html>
<md2html :article-content="article.afficheContent"></md2html>
</div>
</div>
@@ -181,9 +181,9 @@
},
setLocationParams() {
const urlParams = new URLSearchParams(location.search);
const taskId = urlParams.get('taskId');
if (taskId) {
this.taskId = taskId;
const afficheId = urlParams.get('afficheId');
if (afficheId) {
this.afficheId = afficheId;
} else {
setTimeout(() => {
window.vtoast.fail('页面路径缺少参数');
@@ -198,7 +198,7 @@
pageId: 'afficheViewer',
actionId: 'selectItemList',
where: {
taskId: this.taskId
afficheId: this.afficheId
},
}
}
@@ -206,7 +206,7 @@
this.isLoading = false
const article = result.data.appData.resultData.rows[0] || {}
// article.taskContent = article.taskContent.replaceAll('__appId__', '<$ ctx.app.config.appId $>')
// article.afficheContent = article.afficheContent.replaceAll('__appId__', '<$ ctx.app.config.appId $>')
this.article = article;
},
resourceUrl(path) {