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
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:
parent
b2b1a8100a
commit
b214747433
|
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ function Index(props) {
|
|||
|
||||
|
||||
return (
|
||||
<div className="news-detail">
|
||||
<div className="lessons-detail">
|
||||
|
||||
<div className="news-detail-header">
|
||||
<Breadcrumb separator=">">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.news-detail {
|
||||
.lessons-detail {
|
||||
min-height: calc(100vh - 58px);
|
||||
|
||||
.news-detail-header {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ function Index(props) {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="news-detail">
|
||||
<div className="tool-detail">
|
||||
|
||||
<div className="news-detail-header">
|
||||
<Breadcrumb separator=">">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.news-detail {
|
||||
.tool-detail {
|
||||
min-height: calc(100vh - 58px);
|
||||
|
||||
.news-detail-header {
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ function Index(props) {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="news-detail">
|
||||
<div className="release-detail">
|
||||
|
||||
<div className="news-detail-header">
|
||||
<Breadcrumb separator=">">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.news-detail {
|
||||
.release-detail {
|
||||
min-height: calc(100vh - 58px);
|
||||
margin-bottom: 158px;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue