docs: 去掉文档

This commit is contained in:
wanchun 2022-06-06 17:46:41 +08:00
parent 5a71f2999d
commit 7c689db1aa
2 changed files with 1 additions and 9 deletions

View File

@ -70,14 +70,6 @@ plugin.applyPlugins({
Fes.js 路由基于 [Vue Router 4.0](https://next.router.vuejs.org/introduction.html),想了解更多的同学可以看看官方文档。
### getRouter
返回当前 `router` 实例。
```js
import { getRouter } from "@fesjs/fes";
const router = getRouter();
router.push();
```
### useRoute
返回当前 `route` 实例,相当于在模板内使用 `$route`。必须在 `setup` 函数内调用。

View File

@ -301,7 +301,7 @@ import { access, useAccess } from '@fesjs/fes';
```js
api.addCoreExports(() => [
{
specifiers: ['getRoutes', 'getRouter', 'getHistory', 'destroyRouter'],
specifiers: ['getRoutes'],
source: absCoreFilePath
}
]);