取消license文件的大小限制
This commit is contained in:
@@ -267,11 +267,7 @@ function fnBeforeUploadFile(file: FileType) {
|
||||
message.error('只支持上传文件格式(.ini)', 3);
|
||||
return false;
|
||||
}
|
||||
const isLt60M = file.size / 1024 / 1024 > 60;
|
||||
if (isLt60M) {
|
||||
message.error('有效软件文件大小应不小于 60MB', 3);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -285,16 +281,6 @@ function fnUploadFile(up: UploadRequestOption) {
|
||||
modalState.from.file = up.file;
|
||||
}
|
||||
|
||||
/**上传文件 */
|
||||
function fnUploadCms(up: UploadRequestOption) {
|
||||
// 改为完成状态
|
||||
const file = modalState.from.cmsList[0];
|
||||
file.percent = 100;
|
||||
file.status = 'done';
|
||||
// 预置到表单
|
||||
modalState.from.cms = up.file;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 获取网元网元列表
|
||||
useNeInfoStore()
|
||||
@@ -460,7 +446,6 @@ onMounted(() => {
|
||||
>
|
||||
<a-textarea
|
||||
v-model:value="modalState.from.comment"
|
||||
:auto-size="{ minRows: 4, maxRows: 6 }"
|
||||
:maxlength="200"
|
||||
:show-count="true"
|
||||
:placeholder="t('views.configManage.license.updateCommentPlease')"
|
||||
|
||||
Reference in New Issue
Block a user