wenlele
2 years ago
8 changed files with 261 additions and 88 deletions
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
@ -1,6 +1,19 @@ |
|||
'use strict'; |
|||
|
|||
import { ApiTable,basicAction } from "$utils"; |
|||
|
|||
export function getVersions() { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "get", |
|||
dispatch: dispatch, |
|||
actionType: "GET_CAMREA", |
|||
url: `${ApiTable.getVersions}`, |
|||
msg: { option: "查询网关版本信息" }, |
|||
reducer: { name: "", params: { noClear: true } }, |
|||
}); |
|||
} |
|||
|
|||
export default { |
|||
|
|||
getVersions, |
|||
}; |
@ -1,14 +1,16 @@ |
|||
'use strict'; |
|||
|
|||
export const ApiTable = { |
|||
login: 'v1/login', |
|||
logout: 'v1/logout', |
|||
login: 'v1/login', |
|||
logout: 'v1/logout', |
|||
|
|||
crossCheck: 'cross_token/check', |
|||
crossCheck: 'cross_token/check', |
|||
|
|||
getVersions: 'v1/versions', //查询网关版本信息
|
|||
}; |
|||
|
|||
export const RouteTable = { |
|||
apiRoot: '/api/root', |
|||
fileUpload: '/_upload/new', |
|||
cleanUpUploadTrash: '/_upload/cleanup', |
|||
apiRoot: '/api/root', |
|||
fileUpload: '/_upload/new', |
|||
cleanUpUploadTrash: '/_upload/cleanup', |
|||
}; |
Loading…
Reference in new issue