diff --git a/frontend/src/views/app-store/installed/index.vue b/frontend/src/views/app-store/installed/index.vue index 6df2b3f46..a645ce9fd 100644 --- a/frontend/src/views/app-store/installed/index.vue +++ b/frontend/src/views/app-store/installed/index.vue @@ -188,7 +188,7 @@ plain round size="small" - :disabled="installed.appStatus === 'Upgrading'" + :disabled="installed.status === 'Upgrading'" @click="openOperate(installed, 'ignore')" v-if="mode === 'upgrade'" > diff --git a/frontend/src/views/container/repo/operator/index.vue b/frontend/src/views/container/repo/operator/index.vue index 611e5aa22..9254e2e59 100644 --- a/frontend/src/views/container/repo/operator/index.vue +++ b/frontend/src/views/container/repo/operator/index.vue @@ -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'))); } diff --git a/frontend/src/views/toolbox/supervisor/file/index.vue b/frontend/src/views/toolbox/supervisor/file/index.vue index 5ba509644..58ab67a3b 100644 --- a/frontend/src/views/toolbox/supervisor/file/index.vue +++ b/frontend/src/views/toolbox/supervisor/file/index.vue @@ -195,3 +195,9 @@ defineExpose({ acceptParams, }); + + diff --git a/frontend/src/views/website/website/config/basic/site-folder/index.vue b/frontend/src/views/website/website/config/basic/site-folder/index.vue index bdf9ef81b..3821536d4 100644 --- a/frontend/src/views/website/website/config/basic/site-folder/index.vue +++ b/frontend/src/views/website/website/config/basic/site-folder/index.vue @@ -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'; }); }