<template v-if="checkPermission([Roles.SysAdmin, Roles.SuperUser, Roles.PowerUser,…
Jump to turn (9)
- 1надо было click.stop="" добавить на контейнер
- 2на русском
- 3при проверки задания мы прерываем проверку и удаляем задание. При удалении задан
- 4@Action public async deleteSet({ set, apiCall }: {set: Set | Project.ProjectFSet
- 5const deleteSet = (set: Set | Project.ProjectFSet) => { SetModule.deleteSet({ se
- 6перенаправление не помогло
- 7await deleteSet(set.id) debugger после deleteSet происходит переход на страницу
- 8Request URL: http://localhost/api/v1/frontend/set/25 Request Method: GET Status
- 9Request URL: http://localhost/api/v1/frontend/set/25 Request Method: GET Status
- User
- Assistant
To add
click.stop=""to the container in your Vue.js template, you should modify the<div>element within your<template>. This approach ensures that click events are not propagated further when they occur on this container. Here’s how you can do it:vue<template v-if="checkPermission([Roles.SysAdmin, Roles.SuperUser, Roles.PowerUser, Roles.UserOperator])" slot-scope="{row}"> <div class="set-table__actions" @click.stop=""> <!-- Your content goes here --> </div> </template>By adding
@click.stop="", you're using Vue's event modifierstopto prevent the click event from propagating to parent elements, thereby limiting unwanted side effects when interactions occur within this container.