优化跨域配置,支持同域的前后端分离部署
This commit is contained in:
@@ -90,7 +90,7 @@ export default {
|
||||
onSubmit: function () {
|
||||
this.$axios({
|
||||
method: 'post',
|
||||
url:"./api/user/changePassword",
|
||||
url:"/api/user/changePassword",
|
||||
params: {
|
||||
oldPassword: crypto.createHash('md5').update(this.oldPassword, "utf8").digest('hex'),
|
||||
password: this.newPassword
|
||||
|
||||
Reference in New Issue
Block a user