|
@@ -243,7 +243,7 @@ export default {
|
|
|
if (result["data"] == 1) {
|
|
|
this.$message.success("活动提交成功");
|
|
|
//提交项目成功,查看sessionStore是否有数据,有则删
|
|
|
- if (localStorage.getItem("makerActivityApplyData"))localStorage.removeItem("makerActivityApplyData");
|
|
|
+ if (localStorage.getItem(`makerActivityApplyData${this.$store.state.userInfo.userid}`))localStorage.removeItem(`makerActivityApplyData${this.$store.state.userInfo.userid}`);
|
|
|
await this.ajax.post(this.$store.state.api+"/delDraft",{userid:this.$store.state.userInfo.userid,type:2})
|
|
|
this.$router.push("/makerActvity");
|
|
|
} else {
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
},
|
|
|
saveData(){
|
|
|
localStorage.setItem(
|
|
|
- "makerActivityApplyData",
|
|
|
+ `makerActivityApplyData${this.$store.state.userInfo.userid}`,
|
|
|
JSON.stringify(this.wordData)
|
|
|
);
|
|
|
},
|
|
@@ -291,9 +291,9 @@ export default {
|
|
|
if(res.data[0].length){
|
|
|
this.wordData = JSON.parse(res.data[0][0].json)
|
|
|
}else{
|
|
|
- if (localStorage.getItem("makerActivityApplyData"))
|
|
|
+ if (localStorage.getItem(`makerActivityApplyData${this.$store.state.userInfo.userid}`))
|
|
|
this.wordData = JSON.parse(
|
|
|
- localStorage.getItem("makerActivityApplyData")
|
|
|
+ localStorage.getItem(`makerActivityApplyData${this.$store.state.userInfo.userid}`)
|
|
|
);
|
|
|
}
|
|
|
this.loading = false;
|