Commit 7e31ea6e authored by leiqingsong's avatar leiqingsong

优化

parent 6e9613f8
...@@ -60,11 +60,11 @@ export default { ...@@ -60,11 +60,11 @@ export default {
}); });
}, },
onRead(file) { onRead(file) {
if (!JSON.parse(localStorage.getItem("user")).inviteCode) { const inviteCode = JSON.parse(localStorage.getItem("user")).inviteCode;
if (!inviteCode) {
this.$toast.fail("当前用户没有邀请码"); this.$toast.fail("当前用户没有邀请码");
return; return;
} }
const inviteCode = JSON.parse(localStorage.getItem("user").inviteCode);
const params = { const params = {
inviteCode: inviteCode inviteCode: inviteCode
}; };
......
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