feat: upload page

This commit is contained in:
zzc
2025-05-09 15:41:44 +08:00
parent c0b08f6c3b
commit c5408ac63d
7 changed files with 139 additions and 26 deletions

View File

@@ -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,
}
},
},