code review 修改

This commit is contained in:
jason
2024-04-18 15:56:49 +08:00
parent 12548b0af2
commit 2589fbe560
8 changed files with 91 additions and 73 deletions

View File

@ -12,12 +12,11 @@ export const setupAuth = (app: App<Element>) => {
hasPermi(app)
}
// TODO @jason拼写是不是 Focus 聚焦?
/**
* 导出指令v-mountedFoucs
* 导出指令v-mountedFocus
*/
export const setupMountedFoucs = (app: App<Element>) => {
app.directive('mountedFoucs', {
export const setupMountedFocus = (app: App<Element>) => {
app.directive('mountedFocus', {
mounted(el) {
el.focus()
}