3 changed files with 18 additions and 4 deletions
@ -0,0 +1,10 @@ |
|||
import Vue from "vue"; |
|||
|
|||
const paramsFormat = function (params) { |
|||
let strArray = [] |
|||
for(let key in params) { |
|||
strArray.push(key+'='+params[key]) |
|||
} |
|||
return strArray.join('&') |
|||
} |
|||
Vue.prototype.$paramsFormat = paramsFormat |
Loading…
Reference in new issue