commit
This commit is contained in:
@@ -20,11 +20,13 @@ const SYS_MENU_SORT_COMPONENT = {
|
||||
defaultProps: {
|
||||
children: "children",
|
||||
label: "label"
|
||||
}
|
||||
},
|
||||
platform: 'PC'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onOpen(platform) {
|
||||
this.platform = platform
|
||||
this.sortDialogVisible = true
|
||||
this.$axios.post("/platform/sys/menu/menuAll", { platform }).then((res) => {
|
||||
if (res.code === 0) {
|
||||
@@ -48,7 +50,7 @@ const SYS_MENU_SORT_COMPONENT = {
|
||||
})
|
||||
this.getTreeIds(ids, this.sortMenuData)
|
||||
this.$axios
|
||||
.post("/platform/sys/menu/sortDo", { ids: ids.toString() })
|
||||
.post("/platform/sys/menu/sortDo", { ids: ids.toString(), platform: this.platform })
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.$message.success(res.msg)
|
||||
|
||||
Reference in New Issue
Block a user