This commit is contained in:
TsMask
2023-09-22 17:48:45 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -61,9 +61,9 @@ export function getAuth(neId: string, imsi: string) {
* @param data 鉴权对象
* @returns object
*/
export function updateAuth(data: Record<string, any>) {
export function updateAuth(data: Record<string, any>,neID:string) {
return request({
url: `/udmUserManage/v1/auth/${data.neId}`,
url: `/udmUserManage/v1/auth/${neID}`,
method: 'put',
data: data,
});

View File

@@ -283,7 +283,7 @@ function fnModalOk() {
modalState.confirmLoading = true;
const from = toRaw(modalState.from);
const neID = queryParams.neId || '-';
const result = from.id ? updateAuth(from) : addAuth(neID, from);
const result = from.id ? updateAuth(from,neID) : addAuth(neID, from);
const hide = message.loading({ content: t('common.loading') });
result
.then(res => {