Merge branch 'main' of http://192.168.65.198:3000/Front_Team/SPDM
This commit is contained in:
@@ -42,8 +42,12 @@ const changeFileType = () => {
|
||||
id: props.id,
|
||||
fileType: Number(fileType.value),
|
||||
};
|
||||
dataUpdateFileApi(params).then(() => {
|
||||
ElMessage.success('修改文件类型成功');
|
||||
dataUpdateFileApi(params).then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
ElMessage.success('修改文件类型成功');
|
||||
} else {
|
||||
fileType.value = props.modelValue === null ? '' : String(props.modelValue);
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user