【fix bug】axios请求,put改为post,delete改为get
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
import { putAction } from '@/api/manage'
|
||||
import { postAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'UserPassword',
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
that.confirmLoading = true
|
||||
const params = Object.assign({ username: this.username }, values)
|
||||
console.log('修改密码提交数据', params)
|
||||
putAction(this.url, params).then((res) => {
|
||||
postAction(this.url, params).then((res) => {
|
||||
if (res.success) {
|
||||
console.log(res)
|
||||
that.$message.success(res.message)
|
||||
|
||||
Reference in New Issue
Block a user