a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { getUuid } from '@/utils/commonUtil'
import { getDateYYYYMMDDHHMISS } from '@/utils/dateUtil'
export function getHeader() {
// 这里可以添加token等认证信息
const token = localStorage.getItem('token')
let authorization = ""
if (token) {
authorization = `Bearer ${token}`
}
return {
Authorization: authorization, // Adjust as needed
'app-id': '8000418004',
'TRANSACTION-ID': getUuid(),
'REQ-TIME': getDateYYYYMMDDHHMISS(),
'SIGN': '',
'user-id': '-1'
}
}
|