Commit a43c1aac authored by bianlongting's avatar bianlongting 💬

fix

parent 562a0bc2
...@@ -108,11 +108,11 @@ export default { ...@@ -108,11 +108,11 @@ export default {
this.projectId = projectxConfig[env]; this.projectId = projectxConfig[env];
return this.projectId; return this.projectId;
}, },
changeCurrentEnv(e) { async changeCurrentEnv(e) {
if (e === "test") { if (e === "test") {
this.getTicket(getTestEnvTicket); await this.getTicket(getTestEnvTicket);
} else if (e === "prod") { } else if (e === "prod") {
this.getTicket(getProdTicket, "prod_ticket"); await this.getTicket(getProdTicket, "prod_ticket");
} }
const projectId = this.getProjectId(e); const projectId = this.getProjectId(e);
this.skinId = ""; this.skinId = "";
...@@ -237,7 +237,6 @@ export default { ...@@ -237,7 +237,6 @@ export default {
let ticket = localStorage.getItem(name); let ticket = localStorage.getItem(name);
if (!ticket) { if (!ticket) {
ticket = await fn(); ticket = await fn();
console.log(ticket, "ticketticket");
localStorage.setItem(name, ticket); localStorage.setItem(name, ticket);
} }
} }
......
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