负责人管理 - 修复页面报错空白问题2
This commit is contained in:
@@ -163,6 +163,8 @@ export default {
|
||||
name: "",
|
||||
adminId: "",
|
||||
id: "",
|
||||
adminName:'',
|
||||
partitionDesc: "",
|
||||
});
|
||||
const addDialog = ref(false);
|
||||
const adminCountryArr = ref([]);
|
||||
@@ -173,7 +175,11 @@ export default {
|
||||
getGuildOperatorList(formData).then((res) => {
|
||||
if (res.code == 200) {
|
||||
res.data.records.forEach(item => {
|
||||
if (item.regionMap && typeof item.regionMap === 'object') {
|
||||
item.regionMap = Object.values(item.regionMap);
|
||||
} else {
|
||||
item.regionMap = []; // 如果regionMap不存在或不是对象,则设置为空数组
|
||||
}
|
||||
});
|
||||
tableData.data = res.data.records;
|
||||
tableData.loading = false;
|
||||
|
Reference in New Issue
Block a user