mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
fix: edit btn not navigating to edit page
This commit is contained in:
parent
88daebbb75
commit
dd6c366af3
3 changed files with 6 additions and 22 deletions
|
@ -60,7 +60,7 @@ function save() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
function goto_modify() {
|
function goto_modify() {
|
||||||
router.push('/domain/' + config.name)
|
router.push('/domain/' + ngx_config.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_another() {
|
function create_another() {
|
||||||
|
|
|
@ -129,7 +129,10 @@ const save = async () => {
|
||||||
content: configText.value, overwrite: true
|
content: configText.value, overwrite: true
|
||||||
}).then(r => {
|
}).then(r => {
|
||||||
handle_response(r)
|
handle_response(r)
|
||||||
router.push('/domain/' + filename.value)
|
router.push({
|
||||||
|
path: '/domain/' + filename.value,
|
||||||
|
query: route.query
|
||||||
|
})
|
||||||
message.success($gettext('Saved successfully'))
|
message.success($gettext('Saved successfully'))
|
||||||
}).catch(handle_parse_error).finally(() => {
|
}).catch(handle_parse_error).finally(() => {
|
||||||
saving.value = false
|
saving.value = false
|
||||||
|
|
|
@ -1,24 +1,5 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name test.jackyu.cn;
|
server_name test;
|
||||||
location /.well-known/acme-challenge {
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real_IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
|
||||||
proxy_pass http://127.0.0.1:5002;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
server {
|
|
||||||
listen 443 ssl http2;
|
|
||||||
listen [::]:443 ssl http2;
|
|
||||||
server_name test.jackyu.cn;
|
|
||||||
ssl_certificate /etc/nginx/ssl/test.jackyu.cn/fullchain.cer;
|
|
||||||
ssl_certificate_key /etc/nginx/ssl/test.jackyu.cn/private.key;
|
|
||||||
location /.well-known/acme-challenge {
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real_IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
|
||||||
proxy_pass http://127.0.0.1:5002;
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue