同步6/16
This commit is contained in:
@@ -64,7 +64,7 @@ function headerToken() {
|
||||
}
|
||||
const beforeAvatarUpload: UploadProps['beforeUpload'] = (rawFile: UploadRawFile) => {
|
||||
const type = rawFile.type.split('/').pop();
|
||||
if (['png', 'jpg'].includes(type)) {
|
||||
if (['png', 'jpg', 'jpeg'].includes(type)) {
|
||||
if (rawFile.size / 1024 / 1024 <= 10) {
|
||||
return true;
|
||||
} else {
|
||||
@@ -92,6 +92,7 @@ const form = ref({
|
||||
name: '', // 分类id、
|
||||
url: '', // 设备名称
|
||||
link: '', // 编号
|
||||
status: '1',
|
||||
byOrder: 1 // 区域
|
||||
});
|
||||
const rules = ref({
|
||||
@@ -108,6 +109,7 @@ function init() {
|
||||
id: res.data.id,
|
||||
name: res.data.name, // 分类id、
|
||||
url: res.data.url, // 设备名称
|
||||
status: res.data.status ?? '0',
|
||||
link: res.data.link, // 编号
|
||||
byOrder: res.data.byOrder // 区域
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user