feat: add domain and external ip configuration items (#18)

This commit is contained in:
Li4n0
2021-05-22 20:40:04 +08:00
committed by GitHub
parent bc6e3962f8
commit 1144f67d37
55 changed files with 228 additions and 143 deletions
-6
View File
@@ -5,9 +5,6 @@ export function auth(token) {
url: '/auth',
method: 'get',
headers: {"Token": token},
validateStatus: function (status) {
return status >= 200 && status < 300
}
})
}
@@ -15,8 +12,5 @@ export function getVersion() {
return request({
url: '/version',
method: 'get',
validateStatus: function (status) {
return status >= 200 && status < 300
}
})
}
+4
View File
@@ -1,9 +1,13 @@
import axios from 'axios'
import {store} from "@/main";
const service = axios.create({
baseURL: '/revsuit/api/', // api的base_url
timeout: 5000, // request timeout
validateStatus: function (status) {
if (status === 403) {
store.authed = false
}
return status >= 200 && status < 300 // 默认的
}
})
+4 -4
View File
@@ -1,14 +1,14 @@
import request from './index'
export function getHttpConfig() {
export function getPlatformConfig() {
return request({
url: '/setting/getHttpConfig',
url: '/setting/getPlatformConfig',
})
}
export function updateHttpConfig(data) {
export function updatePlatformConfig(data) {
return request({
url: '/setting/updateHttpConfig',
url: '/setting/updatePlatformConfig',
method: "post",
data: data
})