Skip to content

Commit

Permalink
docs(frontend): 新增集群和实例选择器文档
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 23511
  • Loading branch information
jinquantianxia committed Nov 11, 2024
1 parent 2170049 commit 125f5e6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dbm-ui/frontend/.bkwikiairc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"prompt":"你是一名专业的软件工程师,精通各种编程语言。根据提供给你的代码文件,请用中文回答其基本用途,主要功能及使用方法,对于vue组件文件,请着重说明其Props、Emits、Exposes等关键属性.以下是提供给你的代码文件的内容:"}
26 changes: 18 additions & 8 deletions dbm-ui/frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
DBM
===
# 本地开发

### 本地开发
## 必要配置

- 1. 执行命令(本地启动http服务)
1. 环境变量文件配置
- 需要在 /frontend 目录下面创建 .env.local 文件,推荐配置如下:
```bash
VITE_AJAX_URL_PREFIX='http://bkdbm.paasdb.woa.com'
```
2. 配置host
```bash
127.0.0.1 local.bkdbm.woa.com
```

## 安装依赖

- 需要在 /frontend 目录下面创建 .env.development 文件
``` bash
yarn
```
// 配置 api 域名
VITE_AJAX_URL_PREFIX = "http://api.xxx.com"

## 运行开发环境

``` bash
yarn dev
```

### 生产环境构建
# 生产环境构建

``` bash
yarn build
Expand Down

0 comments on commit 125f5e6

Please sign in to comment.