This commit is contained in:
fatedier
2019-02-11 12:15:31 +08:00
parent 95a881a7d3
commit 2481dfab64
11 changed files with 16 additions and 27 deletions

View File

@@ -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'
})
})