优化跨域配置,支持同域的前后端分离部署

This commit is contained in:
648540858
2023-03-05 09:53:26 +08:00
parent a5d9afeb60
commit a7c3cf5316
71 changed files with 173 additions and 191 deletions

View File

@@ -128,7 +128,7 @@ export default {
var that = this;
that.$axios({
method: 'delete',
url:`./api/platform/delete/${platform.serverGBId}`
url:`/api/platform/delete/${platform.serverGBId}`
}).then(function (res) {
if (res.data.code === 0) {
that.$message({
@@ -162,7 +162,7 @@ export default {
this.$axios({
method: 'get',
url:`./api/platform/query/${that.count}/${that.currentPage}`
url:`/api/platform/query/${that.count}/${that.currentPage}`
}).then(function (res) {
if (res.data.code === 0) {
that.total = res.data.data.total;