@/utils/auth#getShareToken JavaScript Examples

The following examples show how to use @/utils/auth#getShareToken. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: bigscreen.js    From report with Apache License 2.0 6 votes vote down vote up
// 获取动态数据
export function getData(data) {
  return request({
    url: 'reportDashboard/getData',
    method: 'post',
    headers: { 'Share-Token': getShareToken(), 'Authorization': getToken() },
    data,
  })
}
Example #2
Source File: bigscreen.js    From report with Apache License 2.0 5 votes vote down vote up
// 预览、查询大屏详情
export function detailDashboard(data) {
  return request({
    url: 'reportDashboard/' + data,
    headers: { 'Share-Token': getShareToken(), 'Authorization': getToken() },
    method: 'get',
  })
}