Commit ff46b601 by 李嘉林

webview 过滤url重复参数

parent 42e37720
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</template> </template>
<script> <script>
let forUrlAddKey = require("mayi-front-tools/forUrlAddKey").default;
import spokesman from "@/api/spokesman.js"; import spokesman from "@/api/spokesman.js";
import shop from "@/api/shop.js"; import shop from "@/api/shop.js";
import indexApi from "@/api/index.js"; import indexApi from "@/api/index.js";
...@@ -59,8 +60,9 @@ export default { ...@@ -59,8 +60,9 @@ export default {
if(wx.getStorageSync("sessionid")){ if(wx.getStorageSync("sessionid")){
this.params +=`&sessionid=${wx.getStorageSync("sessionid")}`; this.params +=`&sessionid=${wx.getStorageSync("sessionid")}`;
} }
console.log(this.params,'-------------------------57') let pageUrl = forUrlAddKey(decodeURIComponent(this.link+this.page+this.params));
return this.link+this.page+this.params; // let pageUrl = this.link+this.page+this.params;
return pageUrl;
}, },
}, },
watch: { watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment