mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 02:59:16 +08:00
fix: 前端优化 (#5754)
This commit is contained in:
parent
e427b2a219
commit
b3759cebd8
@ -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';
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user