Commit a43c1aac authored by bianlongting's avatar bianlongting 💬

fix

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