【fix bug】delete请求改为post请求

This commit is contained in:
zhaoxiao
2023-03-14 10:37:15 +08:00
parent 8a45c78a57
commit 880e6f225d
10 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -140,7 +140,7 @@
<script>
import DepartModal from './modules/DepartModal'
import { deleteByDepartId, queryDepartTreeSync, searchByKeywords } from '@/api/api'
import { getAction, httpAction } from '@/api/manage'
import { httpAction, postAction } from '@/api/manage'
import { JeroListMixin } from '@/mixins/JeroListMixin'
import DepartAuthModal from './modules/DepartAuthModal'
import { cloneObject } from '@/utils/util'
@@ -367,7 +367,7 @@ export default {
title: '确认删除',
content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据,以及子节点数据吗?',
onOk: function () {
getAction(that.url.deleteBatch, { ids: ids }).then((res) => {
postAction(that.url.deleteBatch, { ids: ids }).then((res) => {
if (res.success) {
that.$message.success(res.message)
that.loadTree()