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

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

@@ -99,7 +99,7 @@ export default {
this.getUserListLoading = true;
this.$axios({
method: 'get',
url: `./api/user/users`,
url: `/api/user/users`,
params: {
page: that.currentPage,
count: that.count
@@ -141,7 +141,7 @@ export default {
}).then(() => {
this.$axios({
method: 'delete',
url: `./api/user/delete?id=${row.id}`
url: `/api/user/delete?id=${row.id}`
}).then((res) => {
this.getUserList();
}).catch((error) => {