Why can't you read sessionstorage? in computed?

Why can"t sessionstorage be read in computed but can be read in mounted?

Jun.28,2021

when I test computed locally, it's worth it. The code had better send it out and have a look (it may be the wrong time to take a value). In addition, mounted can assign a value to a variable

.
this.data = sessionStorage['data']

in computed

return this.data
Is the variable set in

computed not called

?
Menu