修复用户管理无法显示头像问题

(cherry picked commit from <gitee.com//lxy0722/django-vue3-admin/commit/4a01e55143967f0a01d3509804d3ba146724928a>
This commit is contained in:
lxy
2025-01-06 20:06:24 +08:00
committed by lxy
parent 21be91a894
commit 2d69633660
4 changed files with 21 additions and 8 deletions

View File

@@ -257,10 +257,10 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
}),
column: {
minWidth: 200, //最小列宽
formatter({value,row,index}){
const values = row.role_info.map((item:any) => item.name);
return values.join(',')
}
// formatter({value,row,index}){
// const values = row.role_info.map((item:any) => item.name);
// return values.join(',')
// }
},
form: {
rules: [
@@ -382,12 +382,13 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
},
avatar: {
title: '头像',
type: 'avatar-cropper',
type: 'avatar-uploader',
align: 'center',
form: {
show: false,
},
column: {
minWidth: 400, //最小列宽
minWidth: 100, //最小列宽
},
},
...commonCrudConfig({