diff --git a/frontend/src/routers/modules/host.ts b/frontend/src/routers/modules/host.ts index d1a613d74..fabc5030d 100644 --- a/frontend/src/routers/modules/host.ts +++ b/frontend/src/routers/modules/host.ts @@ -13,6 +13,7 @@ const hostRouter = { { path: '/hosts/files', name: 'File', + props: true, component: () => import('@/views/host/file-management/index.vue'), meta: { title: 'menu.files', diff --git a/frontend/src/views/app-store/detail/params/index.vue b/frontend/src/views/app-store/detail/params/index.vue index 9932230be..39c342dda 100644 --- a/frontend/src/views/app-store/detail/params/index.vue +++ b/frontend/src/views/app-store/detail/params/index.vue @@ -117,7 +117,7 @@ const handleParams = () => { } else { rules[p.envKey] = [Rules.requiredInput]; if (p.envKey === 'PANEL_DB_NAME') { - rules[p.envKey].push(Rules.linuxName); + rules[p.envKey].push(Rules.dbName); } } } diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index fded2ee10..bc25b73a2 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -209,7 +209,9 @@ import Download from './download/index.vue'; import { Mimetypes } from '@/global/mimetype'; import Process from './process/index.vue'; import Detail from './detail/index.vue'; +import { useRouter } from 'vue-router'; +const router = useRouter(); const data = ref(); let selects = ref([]); let req = reactive({ path: '/', expand: true, showHidden: false, page: 1, pageSize: 100 }); @@ -454,7 +456,6 @@ const openWget = () => { }; const closeWget = (submit: any) => { - console.log(submit); wgetPage.open = false; search(); if (submit) { @@ -568,6 +569,9 @@ const buttons = [ ]; onMounted(() => { + if (router.currentRoute.value.query.path) { + req.path = String(router.currentRoute.value.query.path); + } search(); }); diff --git a/frontend/src/views/website/website/config/basic/index.vue b/frontend/src/views/website/website/config/basic/index.vue index 074ee4f69..1b1176db1 100644 --- a/frontend/src/views/website/website/config/basic/index.vue +++ b/frontend/src/views/website/website/config/basic/index.vue @@ -1,22 +1,22 @@ @@ -42,5 +42,5 @@ const id = computed(() => { return props.id; }); -let index = ref('0'); +let tabIndex = ref('0'); 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 e65a258c0..40d986bd7 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 @@ -4,7 +4,12 @@
{{ website.alias }} - {{ website.sitePath }} + + {{ website.sitePath }} + + + +
@@ -20,6 +25,8 @@