Vue url with two different ids

I am trying to delete a user from the team, but I am not sure how to pass ‘team id’ and the deleting ‘user id’ in the same url, I tried to pass two param but I am unable to ‘deleteUserFromTeam’ in VUE file.

Index.js

actions:

deleteUserFromTeam(context,data){
      return new Promise((resolve,reject)=>{
        axiosService({ requiresAuth: true })
        .delete(`/administration/teams/${data.team_id}/members/${data.user_id}`)
          .then(() => resolve(context.commit(types.DELETE_USER_FROM_TEAM, data.id)))
          .catch((error) => reject(error));
      })
    },

Mutations:
[types.DELETE_USER_FROM_TEAM](state, payload) {
      const idx = state.teamsList.findIndex((user) => user.id === payload);
      state.teamsList.splice(idx, 1);
    },

VuePage

 deleteUserMember(){
      console.log('delete user');

      this.isLoading = true;
      this.deleteUserFromTeam({ team_id: this.currentTeam.id, user_id:this.user.id})
        .then(() => {
          this.$router.push("/administration/teams/:teamId");
        })
        .catch((error) => {
          this.errorMessageDeleteDialog = error;
        })
        .finally(() => {
          this.isLoading = false;
        });
    },`

You can pass the team id and user id in the data object:

deleteUserFromTeam(context, data){
  return new Promise((resolve,reject)=>{
    axiosService({ requiresAuth: true })
    .delete(`/administration/teams/${data.team_id}/members/${data.user_id}`)
      .then(() => resolve(context.commit(types.DELETE_USER_FROM_TEAM, data.id)))
      .catch((error) => reject(error));
  })
},