Commit f843f995 authored by 朱国瑞's avatar 朱国瑞

补全跳转过程中缺失的usagetrackingkey参数

parent 06809a3c
...@@ -74,8 +74,17 @@ export default { ...@@ -74,8 +74,17 @@ export default {
}, },
methods: { methods: {
goHome() { goHome() {
let usagetrackingkey = "";
if (this.$route.query.usagetrackingkey != null) {
usagetrackingkey = this.$route.query.usagetrackingkey;
}
let query = {};
if (usagetrackingkey) {
query.usagetrackingkey = usagetrackingkey;
}
this.$router.push({ this.$router.push({
path: "/" path: "/",
query
}); });
}, },
/** /**
......
...@@ -925,11 +925,15 @@ export default { ...@@ -925,11 +925,15 @@ export default {
}; };
localStorage.setItem("aiParams", JSON.stringify(aiParams)); localStorage.setItem("aiParams", JSON.stringify(aiParams));
let openDev = this.$route.query.openDev; let openDev = this.$route.query.openDev;
localStorage.setItem( let completeUrl = this.config.completeUrl;
"completeUrl", let incompleteUrl = this.config.incompleteUrl;
this.config.completeUrl if (this.usagetrackingkey) {
); completeUrl =
localStorage.setItem("incompleteUrl", this.config.incompleteUrl); completeUrl + "?usagetrackingkey=" + this.usagetrackingkey;
incompleteUrl = incompleteUrl + "?usagetrackingkey=" + this.usagetrackingkey;
}
localStorage.setItem("completeUrl", completeUrl);
localStorage.setItem("incompleteUrl", incompleteUrl);
let url = let url =
this.config.sdkUrl + "?lying=" + this.config.sdkUrl + "?lying=" +
this.lying; this.lying;
......
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