Skip to content

Commit

Permalink
feat:add dbm get link support
Browse files Browse the repository at this point in the history
  • Loading branch information
iRuxu committed Oct 28, 2023
1 parent 3d1d457 commit 0b1c54b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/jx3box.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"app_types": ["pz", "calendar", "battle"],
"exam_types": ["question", "paper"],
"db_types": ["skill", "buff", "npc", "doodad"],
"dbm_types": ["vpk"],
"dbm_types": ["pkg","item","vpk"],
"team_types": ["org", "role", "raid", "apply"],
"vip_types": ["mall"]
},
Expand Down
4 changes: 4 additions & 0 deletions js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ module.exports = {
} else if (__sourceType.app_types.includes(type)) {
return "/" + `${type}/view/${id}`;

// DBM
} else if (__sourceType.dbm_types.includes(type)) {
return "/dbm/" + `${type}/${id}`;

// 数据库
} else if (__sourceType.db_types.includes(type)) {
let link = "/" + `app/database/?type=${type}&query=${id}`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jx3box/jx3box-common",
"version": "8.0.1",
"version": "8.0.2",
"description": "JX3BOX公共基础模块",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit 0b1c54b

Please sign in to comment.