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