@aligov/url-encode
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

重定向url拼接

当后端返回重定向的url时,需要使用该方法来encode当前url中的参数。

import { urlSplice } from "@aligov/gov-login";

request('xxxx').then(redirect_url => {
  const url = urlSplice(redirect_url);

  // 跳转
  location.href = url;
})

Dependents (0)

Package Sidebar

Install

npm i @aligov/url-encode

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

325 kB

Total Files

18

Last publish

Collaborators

  • wanyi.css
  • jasoncapricorn
  • qingkaili
  • huguoxin
  • shenyu.wsy
  • liunian
  • tao1991123
  • itrip
  • xiazhiqiang
  • mo.zhou
  • guoliang.hgl
  • daip
  • baizhao