mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 04:52:52 +08:00
[fix] 修复 在 答题页面和 答题结果页面 提示未登录的问题
This commit is contained in:
@@ -91,7 +91,9 @@ export default {
|
||||
methods: {
|
||||
init() {
|
||||
let shareTimeStamp = this.$route.query.shareTime -0;
|
||||
localStorage.token = this.$route.query.token;
|
||||
if(this.$route.query.token){
|
||||
localStorage.token = this.$route.query.token;
|
||||
}
|
||||
console.log(shareTimeStamp);
|
||||
this.formData.shareTime = formatDate.formatDate(new Date(shareTimeStamp));
|
||||
answerDetail({
|
||||
|
||||
@@ -45,6 +45,9 @@ export default {
|
||||
// "C" : 8,
|
||||
// }
|
||||
// localStorage.answerList = JSON.stringify(tmp)
|
||||
if(this.$route.query.token){
|
||||
localStorage.token = this.$route.query.token;
|
||||
}
|
||||
this.answerList = JSON.parse(localStorage["DISC-answerList"])
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user