【fix bug】axios请求,put改为post,delete改为get

This commit is contained in:
zhaoxiao
2023-03-14 10:08:24 +08:00
parent 921e9d20bd
commit 8a45c78a57
43 changed files with 127 additions and 118 deletions
@@ -39,7 +39,7 @@
</template>
<script>
import { getAction, putAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
import Vue from 'vue'
import store from '@/store/'
import { USER_INFO } from '@/store/mutation-types'
@@ -122,7 +122,7 @@ export default {
orgCode: this.departSelected,
username: this.username
}
putAction('/sys/selectDepart', obj).then(res => {
postAction('/sys/selectDepart', obj).then(res => {
if (res.success) {
const userInfo = res.result.userInfo
Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000)
@@ -77,7 +77,7 @@
</template>
<script>
import { getAction, putAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
import ShowAnnouncement from './ShowAnnouncement'
import store from '@/store/'
import DynamicNotice from './DynamicNotice'
@@ -170,7 +170,7 @@ export default {
}, 200)
},
showAnnouncement (record) {
putAction(this.url.editCementSend, { anntId: record.id }).then((res) => {
postAction(this.url.editCementSend, { anntId: record.id }).then((res) => {
if (res.success) {
this.loadData()
}
@@ -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)