Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update settings.md (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
copywx authored Jul 6, 2023
1 parent 5cbe078 commit 68c6add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ window.__PRODUCTION__VUE_VBEN_ADMIN__CONF__ = {

1. 首先在 `.env` 或者对应的开发环境配置文件内,新增需要可动态配置的变量,需要以 `VITE_GLOB_`开头

2. `VITE_GLOB_` 开头的变量会自动加入环境变量,通过在 `src/types/config.d.ts` 内修改 `GlobEnvConfig``GlobConfig` 两个环境变量的值来定义新添加的类型
2. `VITE_GLOB_` 开头的变量会自动加入环境变量,通过在 `types/config.d.ts` 内修改 `GlobEnvConfig``GlobConfig` 两个环境变量的值来定义新添加的类型

3. [useGlobSetting](https://github.com/vbenjs/vue-vben-admin/tree/main/src/hooks/setting/index.ts) 函数中添加刚新增的返回值即可

Expand Down

0 comments on commit 68c6add

Please sign in to comment.