You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2021/06/25 06:14:07 UTC
[incubator-shenyu-website] branch main updated: fix some form
errors on dictionary-management page (#47)
This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new d63d6a9 fix some form errors on dictionary-management page (#47)
d63d6a9 is described below
commit d63d6a9750f5ad0d528570ab85734b77110d72d9
Author: JooKS <jo...@gmail.com>
AuthorDate: Fri Jun 25 14:13:52 2021 +0800
fix some form errors on dictionary-management page (#47)
---
content/en/projects/shenyu/dictionary-management/index.md | 6 ++----
content/zh/projects/shenyu/dictionary-management/index.md | 5 +++--
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/content/en/projects/shenyu/dictionary-management/index.md b/content/en/projects/shenyu/dictionary-management/index.md
index c6ae066..d3e31f6 100644
--- a/content/en/projects/shenyu/dictionary-management/index.md
+++ b/content/en/projects/shenyu/dictionary-management/index.md
@@ -28,10 +28,8 @@ CREATE TABLE IF NOT EXISTS `shenyu_dict` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
```
-* The current usage scenario is when the plugin `handle` configuring the `data_type=3` `(select box)`
+* The current usage scenario is when the plugin `handle` configuring the `data_type=3` (select box)
-eg. `degradeRuleGrade` is one of fields of sentinel's `handle` json
-
-When it adds rules, it automatically looks up all the general dictionaries of `type='degradeRuleGrade'` in the `shenyu_dict` table as a select-box when you edit the General rules field
+eg. `degradeRuleGrade` is one of fields of Sentinel's `handle` json. When it adds rules, it automatically looks up all the general dictionaries of `type='degradeRuleGrade'` in the `shenyu_dict` table as a select-box when you edit the General rules field.
diff --git a/content/zh/projects/shenyu/dictionary-management/index.md b/content/zh/projects/shenyu/dictionary-management/index.md
index b621e62..1472135 100644
--- a/content/zh/projects/shenyu/dictionary-management/index.md
+++ b/content/zh/projects/shenyu/dictionary-management/index.md
@@ -11,6 +11,7 @@ description: 字典管理详解
## 表设计
* sql
+
```sql
CREATE TABLE IF NOT EXISTS `shenyu_dict` (
`id` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主键id',
@@ -27,8 +28,8 @@ CREATE TABLE IF NOT EXISTS `shenyu_dict` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
```
-* 目前使用场景是插件处理配置 data_type=3 下拉框时使用
+* 目前使用场景是插件处理配置 `data_type=3` 下拉框时使用
-假如 sentinel 插件处理字段中的 degradeRuleGrade, 那么新增规则时,编辑 degradeRuleGrade 字段时会自动从字典表查出 type=degradeRuleGrade 的所有字典作为下拉选项。
+例如 Sentinel 插件处理字段中的 `degradeRuleGrade`。当新增规则时,编辑 `degradeRuleGrade` 字段时,会自动从 `shenyu_dict` 查出 `type='degradeRuleGrade'` 的所有字典作为下拉选项。