Skip to content

Commit

Permalink
更新流媒体列表获取
Browse files Browse the repository at this point in the history
  • Loading branch information
langmansh committed Nov 26, 2021
1 parent 753317a commit 281ab75
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified .vs/AKStreamNVR/v16/.suo
Binary file not shown.
Binary file modified .vs/slnx.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion src/util/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function request(options) {

if (data instanceof Array) {
data = {
list: data,
data: data,
};
} else if (lodash.isString(data)) {
data = {
Expand Down
4 changes: 2 additions & 2 deletions src/view/device/EditForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export default class EditForm extends React.Component {
GetMediaServerList({
...params
}).then(res => {
console.log(res.data)
console.log(res)
this.setState({
mediaServerID: res.data.list
mediaServerID: [...res.data],
})
})

Expand Down

0 comments on commit 281ab75

Please sign in to comment.