1.0.4 • Published 3 years ago

add-params-url v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

add params to current router URL with Vue

methods

  1. addParams: add params to url
  2. getParams: return params

example:

import Rt from "add-params-url";

const params = {ispName: 22}
new Rt(this).addParams(params)

before: http://localhost:4000/buy/buyOrder
after: http://localhost:4000/buy/buyOrder?ispName=22

new Rt(this).getParams() // {ispName: 22}
1.0.4

3 years ago

1.0.1

3 years ago