mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 00:57:30 +08:00
fix: 修正环境检查
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user