mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
fix api
This commit is contained in:
parent
95a881a7d3
commit
2481dfab64
11 changed files with 16 additions and 27 deletions
|
|
@ -54,13 +54,9 @@
|
|||
credentials: 'include',
|
||||
method: 'PUT',
|
||||
body: this.textarea,
|
||||
}).then(res => {
|
||||
return res.json()
|
||||
}).then(json => {
|
||||
}).then(() => {
|
||||
fetch('/api/reload', {credentials: 'include'})
|
||||
.then(res => {
|
||||
return res.json()
|
||||
}).then(json => {
|
||||
.then(() => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'Success'
|
||||
|
|
@ -68,7 +64,7 @@
|
|||
}).catch(err => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: 'Reload frpc configure file error!',
|
||||
message: 'Reload frpc configure file error, ' + err,
|
||||
type: 'warning'
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue