mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: 优化问题
This commit is contained in:
@@ -342,6 +342,9 @@ func (r *websiteRepo) Create(ctx context.Context, req *request.WebsiteCreate) (*
|
||||
if err = phpVhost.SetPHP(req.PHP); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = phpVhost.SetIndex([]string{"index.php", "index.html"}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = phpVhost.SetConfig("010-rewrite.conf", "site", ""); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ IncludeOptional /opt/ace/sites/default/config/shared/*.conf
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
DocumentRoot /opt/ace/sites/default/public
|
||||
DirectoryIndex index.php index.html
|
||||
DirectoryIndex index.html
|
||||
# custom configs
|
||||
IncludeOptional /opt/ace/sites/default/config/site/*.conf
|
||||
<Directory /opt/ace/sites/default/public>
|
||||
|
||||
@@ -21,7 +21,7 @@ server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /opt/ace/sites/default/public;
|
||||
index index.php index.html;
|
||||
index index.html;
|
||||
# custom configs
|
||||
include /opt/ace/sites/default/config/site/*.conf;
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ onMounted(() => {
|
||||
<n-card :title="$gettext('Running Status')">
|
||||
<template #header-extra>
|
||||
<n-switch
|
||||
v-model:disabled="fetchingIsEnabled"
|
||||
:disabled="fetchingIsEnabled"
|
||||
v-model:value="isEnabled"
|
||||
@update:value="handleIsEnabled"
|
||||
>
|
||||
@@ -147,24 +147,24 @@ onMounted(() => {
|
||||
{{ statusStr }}
|
||||
</n-alert>
|
||||
<n-flex>
|
||||
<n-button type="success" v-model:disabled="fetchingStatus" @click="handleStart">
|
||||
<n-button type="success" :disabled="fetchingStatus || status" @click="handleStart">
|
||||
{{ $gettext('Start') }}
|
||||
</n-button>
|
||||
<n-popconfirm @positive-click="handleStop">
|
||||
<template #trigger>
|
||||
<n-button type="error" v-model:disabled="fetchingStatus">
|
||||
<n-button type="error" :disabled="fetchingStatus || !status">
|
||||
{{ $gettext('Stop') }}
|
||||
</n-button>
|
||||
</template>
|
||||
{{ $gettext('Are you sure you want to stop %{ service }?', { service: props.service }) }}
|
||||
</n-popconfirm>
|
||||
<n-button type="warning" v-model:disabled="fetchingStatus" @click="handleRestart">
|
||||
<n-button type="warning" :disabled="fetchingStatus || !status" @click="handleRestart">
|
||||
{{ $gettext('Restart') }}
|
||||
</n-button>
|
||||
<n-button
|
||||
v-if="showReload"
|
||||
type="primary"
|
||||
v-model:disabled="fetchingStatus"
|
||||
:disabled="fetchingStatus || !status"
|
||||
@click="handleReload"
|
||||
>
|
||||
{{ $gettext('Reload') }}
|
||||
|
||||
Reference in New Issue
Block a user