Ver código fonte

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

feat
JinxChen 1 ano atrás
pai
commit
62a4041e1e
1 arquivos alterados com 5 adições e 5 exclusões
  1. +5
    -5
      src/views/package-home/index.vue

+ 5
- 5
src/views/package-home/index.vue Ver arquivo

@@ -1,7 +1,7 @@
<!--
* @Date: 2023-02-24 14:18:25
* @LastEditors: JinxChen
* @LastEditTime: 2023-04-03 11:02:11
* @LastEditTime: 2023-04-03 11:11:03
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue
* @description:
-->
@@ -135,10 +135,10 @@ export default {
console.log("params", params);
this.params = {...params};
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 {
console.log("不存在redUrl");
this.checkBrowser();


Carregando…
Cancelar
Salvar