From 326868880e4fca8e7dc0fc3ee41687d76fb9f4ab Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Mon, 14 Mar 2022 16:48:25 +0800 Subject: [PATCH] fix: app relation api --- src/views/assets/SystemUser/SystemUserDetail/AppList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/assets/SystemUser/SystemUserDetail/AppList.vue b/src/views/assets/SystemUser/SystemUserDetail/AppList.vue index ba96ea082..867fa1f43 100644 --- a/src/views/assets/SystemUser/SystemUserDetail/AppList.vue +++ b/src/views/assets/SystemUser/SystemUserDetail/AppList.vue @@ -33,7 +33,7 @@ export default { return { tableConfig: { name: 'AppList', - url: `/api/v1/applications/accounts/?systemuser=${this.object.id}`, + url: `/api/v1/applications/system-users-apps-relations/?systemuser=${this.object.id}`, columns: ['app_display', 'actions'], columnsMeta: { app_display: { @@ -68,7 +68,7 @@ export default { type: 'danger', can: !this.$store.getters.currentOrgIsRoot, callback: (val) => { - this.$axios.delete(`/api/v1/applications/accounts/${val.row.id}/`).then(() => { + this.$axios.delete(`/api/v1/applications/system-users-apps-relations/${val.row.id}/`).then(() => { this.$message.success(this.$t('common.deleteSuccessMsg')) this.$refs.ListTable.reloadTable() }) @@ -98,7 +98,7 @@ export default { showHasObjects: false, performAdd: (items) => { const objectId = this.object.id - const relationUrl = `/api/v1/applications/accounts/` + const relationUrl = `/api/v1/applications/system-users-apps-relations/` const appsId = items.map(v => v.value) const data = [] for (const appId of appsId) {