更新部分接口传参

This commit is contained in:
2025-07-29 15:49:11 +08:00
parent b82eb59b1d
commit 943ef313cf
3 changed files with 27 additions and 23 deletions

View File

@@ -148,7 +148,9 @@
this.$http({
url: this.$http.adornUrl(`/sys/menu/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
params: this.$http.adornParams({
menuId: this.dataForm.id
})
}).then(({data}) => {
this.dataForm.id = data.menu.menuId
this.dataForm.type = data.menu.type

View File

@@ -130,7 +130,9 @@
this.$http({
url: this.$http.adornUrl(`/sys/menu/delete/${id}`),
method: 'post',
data: this.$http.adornData()
data: this.$http.adornData({
menuId: id
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({