|
@@ -94,11 +94,17 @@ async function getReportInfo() {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- reportContent.value = reportInfo.value.content
|
|
|
|
|
|
+ reportContent.value = formatIframeData(reportInfo.value.content)
|
|
splitReportContent(reportContent.value)
|
|
splitReportContent(reportContent.value)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
getReportInfo()
|
|
getReportInfo()
|
|
|
|
+
|
|
|
|
+// 给报告详情中图表加参数
|
|
|
|
+function formatIframeData(str) {
|
|
|
|
+ return str.replace(/\/chartshow\?code=/g, `/chartshow?source=ht_chart&token=${localStorage.getItem('token')}&reportId=${reportId}&code=`)
|
|
|
|
+}
|
|
|
|
+
|
|
function getAuthorFollowState() {
|
|
function getAuthorFollowState() {
|
|
apiUser.getFollowState({
|
|
apiUser.getFollowState({
|
|
names: reportInfo.value.author
|
|
names: reportInfo.value.author
|