mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
refactor: Integrate the @vben-core/shared package
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# @vben/constants
|
||||
|
||||
用于多个 `app` 公用的常量,继承了 `@vben-core/constants` 的所有能力。业务上有通用常量可以放在这里。
|
||||
用于多个 `app` 公用的常量,继承了 `@vben-core/shared/constants` 的所有能力。业务上有通用常量可以放在这里。
|
||||
|
||||
## 用法
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
```bash
|
||||
# 进入目标应用目录,例如 apps/xxxx-app
|
||||
# cd apps/xxxx-app
|
||||
pnpm add @vben/hooks --workspace
|
||||
pnpm add @vben/constants --workspace
|
||||
```
|
||||
|
||||
### 使用
|
||||
|
||||
```ts
|
||||
import { useNamespace } from '@vben/hooks';
|
||||
import { DEFAULT_HOME_PATH } from '@vben/constants';
|
||||
```
|
||||
|
@@ -20,6 +20,6 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@vben-core/constants": "workspace:*"
|
||||
"@vben-core/shared": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
@@ -1,2 +1,2 @@
|
||||
export * from './core';
|
||||
export * from '@vben-core/constants';
|
||||
export * from '@vben-core/shared/constants';
|
||||
|
Reference in New Issue
Block a user