fix: 前端优化 (#5754)

This commit is contained in:
John Bro 2024-07-11 10:59:25 +08:00 committed by GitHub
parent e427b2a219
commit b3759cebd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 3 deletions

View File

@ -188,7 +188,7 @@
plain
round
size="small"
:disabled="installed.appStatus === 'Upgrading'"
:disabled="installed.status === 'Upgrading'"
@click="openOperate(installed, 'ignore')"
v-if="mode === 'upgrade'"
>

View File

@ -131,7 +131,7 @@ function validateDownloadUrl(rule: any, value: any, callback: any) {
if (value === '') {
callback();
}
const pattern = /^https?/i;
const pattern = /^(http:\/\/|https:\/\/)/i;
if (pattern.test(value)) {
return callback(new Error(i18n.global.t('container.urlWarning')));
}

View File

@ -195,3 +195,9 @@ defineExpose({
acceptParams,
});
</script>
<style scoped lang="scss">
.fullScreen {
border: none;
}
</style>

View File

@ -163,7 +163,7 @@ const initData = () => {
function filterDirectories(directories: any[]) {
return directories.filter((dir) => {
return !dir.startsWith('/node_modules') && !dir.startsWith('/vendor');
return dir !== '/node_modules' && dir !== '/vendor';
});
}