交付 Windows 与 Web 端到端加密附件预览
This commit is contained in:
1 parent
d1efdedc57
commit
c24960d22a
19 files changed
+421
-58
No files matched your search
+2
-2
@@ -91,10 +91,10 @@ export const useSession = defineStore('session', () => {
|
||||
void connect(token)
|
||||
}
|
||||
|
||||
async function authorized<T>(path: string, method = 'GET', body?: object) {
|
||||
async function authorized<T>(path: string, method = 'GET', body?: object, binary = false) {
|
||||
const current = token
|
||||
try {
|
||||
const response = await request<T>(path, method, current, body)
|
||||
const response = await request<T>(path, method, current, body, binary)
|
||||
if (token !== current) throw new Error('登录会话已变更')
|
||||
return response
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user