更新小程序仓库

This commit is contained in:
zoujiandong
2023-11-17 09:51:35 +08:00
parent 13f54a26df
commit 4506940c2d
936 changed files with 60022 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import {
getCurrentPageUrl,
getCurrentPageParam
} from "./getUrl"
function formatUrl(){
let redirectUrl=getCurrentPageUrl();
let options=getCurrentPageParam();
let params="";
let url='';
for (const key in options) {
if(params){
params=params+'&'+key+'='+options[key];
}else{
params=params+key+'='+options[key];
}
};
if(params){
url=redirectUrl+"?"+params
}else{
url=redirectUrl
}
return encodeURIComponent(url);
}
module.exports={
formatUrl
}