Skip to content

Commit

Permalink
fix: requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Feb 1, 2025
1 parent 0bd82c1 commit d2a9dab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions js/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,11 @@ function $http(options) {
return ins;
}

// 从url中获取参数
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
return r ? decodeURIComponent(r[2]) : null;
}

export { $cms, $next, $helper, $node, $team, $pay, $lua, $http, axios };
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.6.0",
"version": "8.6.1",
"description": "JX3BOX公共基础模块",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit d2a9dab

Please sign in to comment.