feat: upload page
This commit is contained in:
@@ -45,8 +45,18 @@
|
||||
computed: {
|
||||
// 设置上传时的 headers
|
||||
uploadHeaders() {
|
||||
let userId = ''
|
||||
let appId = ''
|
||||
if (this.$store.state?.user?.userId) {
|
||||
userId = this.$store.state?.user?.userId
|
||||
}
|
||||
if (this.$store.state?.user?.appId) {
|
||||
appId = this.$store.state?.user?.appId
|
||||
}
|
||||
return {
|
||||
Authorization: `${this.token}`,
|
||||
'x-user-id': userId,
|
||||
'x-app-id': appId,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user