JSON字符串报错
Context testing / run-01 (push) Successful in 2m0s Details
Context testing / dump_contexts_to_log (push) Successful in 37s Details
Context testing / run-02 (push) Successful in 2m2s Details
Context testing / run-03 (push) Successful in 3m4s Details
Context testing / run-04 (push) Successful in 2m58s Details

This commit is contained in:
谢思 2026-06-10 11:24:19 +08:00
parent b2b1a8100a
commit b214747433
7 changed files with 30 additions and 12 deletions

View File

@ -40,12 +40,23 @@ export function getProjectsLists(id,params){
* @param {*} params
* @returns
*/
export function getSourceList(params){
return fetch({
export async function getSourceList(params){
const res = await fetch({
url:`/zone/open/${params.id}/resource/list`,
method: 'get',
params
})
});
if (res && res.data && res.data.rows) {
res.data.rows = res.data.rows.map(row => {
if (row && row.extendData) {
return { ...row, extendData: JSON.stringify(row.extendData) };
}
return row;
});
}
return res;
}
/**
@ -74,11 +85,17 @@ export function getNewsDetail(id){
})
}
export function getSourceDetail(id){
return fetch({
export async function getSourceDetail(id){
const res = await fetch({
url:`/zone/open/resource/detail/${id}`,
method: 'get'
})
});
if (res && res.data && res.data.data && res.data.data.extendData) {
res.data.data.extendData = JSON.stringify(res.data.data.extendData);
}
return res;
}
export function getMainInfos(deptId, params) {
@ -196,3 +213,4 @@ export function checkInstantUpload(data) {
data
});
}

View File

@ -49,7 +49,7 @@ function Index(props) {
return (
<div className="news-detail">
<div className="lessons-detail">
<div className="news-detail-header">
<Breadcrumb separator=">">

View File

@ -1,4 +1,4 @@
.news-detail {
.lessons-detail {
min-height: calc(100vh - 58px);
.news-detail-header {

View File

@ -61,7 +61,7 @@ function Index(props) {
}
return (
<div className="news-detail">
<div className="tool-detail">
<div className="news-detail-header">
<Breadcrumb separator=">">

View File

@ -1,4 +1,4 @@
.news-detail {
.tool-detail {
min-height: calc(100vh - 58px);
.news-detail-header {

View File

@ -138,7 +138,7 @@ function Index(props) {
}
return (
<div className="news-detail">
<div className="release-detail">
<div className="news-detail-header">
<Breadcrumb separator=">">

View File

@ -1,4 +1,4 @@
.news-detail {
.release-detail {
min-height: calc(100vh - 58px);
margin-bottom: 158px;