mirror of https://github.com/1Panel-dev/1Panel
fix: 解决上传界面分页错误的问题
parent
507dd44465
commit
a1c3fa644c
|
@ -31,7 +31,12 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<ComplexTable :pagination-config="paginationConfig" v-model:selects="selects" :data="data">
|
<ComplexTable
|
||||||
|
:pagination-config="paginationConfig"
|
||||||
|
@search="search"
|
||||||
|
v-model:selects="selects"
|
||||||
|
:data="data"
|
||||||
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<el-button
|
<el-button
|
||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
|
@ -164,9 +169,11 @@ const beforeAvatarUpload = (rawFile) => {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
!rawFile.name.endsWith('.sql') ||
|
!rawFile.name.endsWith('.sql') &&
|
||||||
!rawFile.name.endsWith('.gz') ||
|
!rawFile.name.endsWith('.zip') &&
|
||||||
!rawFile.name.endsWith('.zip') ||
|
!rawFile.name.endsWith('.tar.gz') &&
|
||||||
|
!rawFile.name.endsWith('.sql.gz') &&
|
||||||
|
!rawFile.name.endsWith('.zip') &&
|
||||||
!rawFile.name.endsWith('.tgz')
|
!rawFile.name.endsWith('.tgz')
|
||||||
) {
|
) {
|
||||||
MsgError(i18n.global.t('database.unSupportType'));
|
MsgError(i18n.global.t('database.unSupportType'));
|
||||||
|
|
Loading…
Reference in New Issue