Browse Source

修复 params reqUrl参数获取错误的问题

feat
JinxChen 1 year ago
parent
commit
62a4041e1e
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/views/package-home/index.vue

+ 5
- 5
src/views/package-home/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2023-02-24 14:18:25 * @Date: 2023-02-24 14:18:25
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-04-03 11:02:11
* @LastEditTime: 2023-04-03 11:11:03
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue * @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue
* @description: * @description:
--> -->
@@ -135,10 +135,10 @@ export default {
console.log("params", params); console.log("params", params);
this.params = {...params}; this.params = {...params};
this.$store.commit("appId", params.appId); this.$store.commit("appId", params.appId);
if(params.redUrl) {
const redUrl = encodeURI(params.redUrl);
console.log("redUrl", params.redUrl, redUrl);
window.location.href = redUrl;
if(params.reqUrl) {
const reqUrl = encodeURI(params.reqUrl);
console.log("reqUrl", params.reqUrl, reqUrl);
window.location.href = reqUrl;
} else { } else {
console.log("不存在redUrl"); console.log("不存在redUrl");
this.checkBrowser(); this.checkBrowser();


Loading…
Cancel
Save