优化跨域配置,支持同域的前后端分离部署
This commit is contained in:
@@ -116,7 +116,7 @@ export default {
|
||||
console.log(this.form);
|
||||
this.$axios({
|
||||
method:"post",
|
||||
url:`./api/platform/catalog/${!this.isEdit? "add":"edit"}`,
|
||||
url:`/api/platform/catalog/${!this.isEdit? "add":"edit"}`,
|
||||
data: this.form
|
||||
}).then((res)=> {
|
||||
if (res.data.code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user