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'; |
'use strict'; |
||||
|
|
||||
|
import { ApiTable,basicAction } from "$utils"; |
||||
|
|
||||
export default { |
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'; |
'use strict'; |
||||
|
|
||||
export const ApiTable = { |
export const ApiTable = { |
||||
login: 'v1/login', |
login: 'v1/login', |
||||
logout: 'v1/logout', |
logout: 'v1/logout', |
||||
|
|
||||
crossCheck: 'cross_token/check', |
crossCheck: 'cross_token/check', |
||||
|
|
||||
|
getVersions: 'v1/versions', //查询网关版本信息
|
||||
}; |
}; |
||||
|
|
||||
export const RouteTable = { |
export const RouteTable = { |
||||
apiRoot: '/api/root', |
apiRoot: '/api/root', |
||||
fileUpload: '/_upload/new', |
fileUpload: '/_upload/new', |
||||
cleanUpUploadTrash: '/_upload/cleanup', |
cleanUpUploadTrash: '/_upload/cleanup', |
||||
}; |
}; |
Loading…
Reference in new issue