Skip to content

Commit

Permalink
Merge pull request #370 from mineadmin/chore(toolbar)
Browse files Browse the repository at this point in the history
chore(toolbar): 修改 remove 方法的参数
  • Loading branch information
kanyxmo authored Oct 24, 2024
2 parents 612da4e + ec639ef commit ba51a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/utils/toolbars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export default function toolbars() {
}
}

const remove = (toolbar: MineToolbar) => {
toolbars.value = toolbars.value.filter(item => item.name !== toolbar.name)
const remove = (name: string) => {
toolbars.value = toolbars.value.filter(item => item.name !== name)
}

return {
Expand Down

0 comments on commit ba51a10

Please sign in to comment.