fixed upload bug

This commit is contained in:
Marvin Zhang
2019-07-29 20:30:39 +08:00
parent 8a07b2ea76
commit fc0c8209f7
6 changed files with 38 additions and 19 deletions

View File

@@ -25,6 +25,9 @@ const user = {
const userInfoStr = window.localStorage.getItem('user_info')
if (!userInfoStr) return {}
return JSON.parse(userInfoStr)
},
token () {
return window.localStorage.getItem('token')
}
},