修复话题列表报错
This commit is contained in:
@@ -409,6 +409,7 @@ export default {
|
||||
request.success({
|
||||
"rows": res.rows.map(i=>{
|
||||
let name = i.name;
|
||||
if (name) {
|
||||
if (name.startsWith('{') && name.endsWith('}')) {
|
||||
i.name = JSON.parse(i.name);
|
||||
} else {
|
||||
@@ -418,7 +419,9 @@ export default {
|
||||
en: i.name,
|
||||
};
|
||||
}
|
||||
}
|
||||
let description = i.description;
|
||||
if (description) {
|
||||
if (description.startsWith('{') && description.endsWith('}')) {
|
||||
i.description = JSON.parse(i.description);
|
||||
} else {
|
||||
@@ -428,7 +431,9 @@ export default {
|
||||
en: i.description,
|
||||
};
|
||||
}
|
||||
}
|
||||
let notice = i.notice;
|
||||
if (notice) {
|
||||
if (notice.startsWith('{') && notice.endsWith('}')) {
|
||||
i.notice = JSON.parse(i.notice);
|
||||
} else {
|
||||
@@ -438,6 +443,7 @@ export default {
|
||||
en: i.notice,
|
||||
};
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}),
|
||||
"total": res.total
|
||||
|
Reference in New Issue
Block a user