fix: 废弃http.js的封装请求方法

This commit is contained in:
chenjinsong
2023-08-25 10:18:20 +08:00
parent 7f91d75792
commit f4ba0040ea
33 changed files with 244 additions and 332 deletions

View File

@@ -73,7 +73,7 @@
<script>
import table from '@/mixins/table'
import { put } from '@/utils/http'
import axios from 'axios'
import { storageKey } from '@/utils/constants'
export default {
@@ -147,12 +147,12 @@ export default {
// if (!user.id){
// return
// }
put('sys/user', user).then(response => {
if (response.code === 200) {
axios.put('sys/user', user).then(response => {
if (response.status === 200) {
// this.rightBox.show = false
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
} else {
this.$message.error(response.msg)
this.$message.error(response.data.message)
}
this.$emit('reload')
})