feat:重构代码
This commit is contained in:
@@ -7,6 +7,7 @@ export const EventKey = {
|
||||
changeDict: 'changeDict',
|
||||
openStatModal: 'openStatModal',
|
||||
openWordListModal: 'openWordListModal',
|
||||
//todo feiqi
|
||||
openDictModal: 'openDictModal',
|
||||
openArticleListModal: 'openArticleListModal',
|
||||
closeOther: 'closeOther',
|
||||
@@ -39,4 +40,4 @@ export function useEvents(arrs: any[],) {
|
||||
onUnmounted(() => {
|
||||
arrs.map((arr) => emitter.off(arr[0], arr[1]))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user