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

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

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