vitesse/src/modules/README.md

12 lines
267 B
Markdown
Raw Normal View History

2021-01-22 18:05:58 +08:00
## Modules
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
```ts
2022-04-07 05:56:24 +08:00
import { type UserModule } from '~/types'
2021-01-22 18:05:58 +08:00
export const install: UserModule = ({ app, router, isClient }) => {
// do something
}
```