2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 00:57:30 +08:00

fix: 修正环境检查

This commit is contained in:
2026-01-09 17:12:57 +08:00
parent 1d41b2c61c
commit f48c975de3
14 changed files with 74 additions and 53 deletions

View File

@@ -24,7 +24,7 @@ const createModel = ref({
const websites = ref<any>([])
const { data: installedDbAndPhp } = useRequest(home.installedDbAndPhp, {
const { data: installedEnvironment } = useRequest(home.installedEnvironment, {
initialData: {
db: [
{
@@ -36,11 +36,11 @@ const { data: installedDbAndPhp } = useRequest(home.installedDbAndPhp, {
})
const mySQLInstalled = computed(() => {
return installedDbAndPhp.value.db.find((item: any) => item.value === 'mysql')
return installedEnvironment.value.db.find((item: any) => item.value === 'mysql')
})
const postgreSQLInstalled = computed(() => {
return installedDbAndPhp.value.db.find((item: any) => item.value === 'postgresql')
return installedEnvironment.value.db.find((item: any) => item.value === 'postgresql')
})
const handleSubmit = async () => {