# if-admin-layout

```
import IfAdminLayout from 'if-admin-layout'

app.use(IfAdminLayout, {store})
```

# Routes

推荐配合if-auth使用

1. 安装时设定
```
app.use(IfAdminLayout, {store, routes})
```
2. 动态设定
```
import {useLayoutConfig} from 'if-admin-layout'
const $ = useLayoutConfig()
$.setRoutes(routes)
```
