fix: 前端优化 (#5754)

This commit is contained in:
John Bro
2024-07-11 02:59:25 +00:00
committed by GitHub
parent e427b2a219
commit b3759cebd8
4 changed files with 9 additions and 3 deletions
@@ -188,7 +188,7 @@
plain
round
size="small"
:disabled="installed.appStatus === 'Upgrading'"
:disabled="installed.status === 'Upgrading'"
@click="openOperate(installed, 'ignore')"
v-if="mode === 'upgrade'"
>
@@ -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')));
}
@@ -195,3 +195,9 @@ defineExpose({
acceptParams,
});
</script>
<style scoped lang="scss">
.fullScreen {
border: none;
}
</style>
@@ -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';
});
}