Skip to content

Commit 97ae26c

Browse files
committed
chore: optimize http-server
1 parent 8ffba6a commit 97ae26c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/api/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const actions = {
1919
data,
2020
...Object.values(project[pName])
2121
).then(res => {
22-
return res;
22+
return res.data;
2323
});
2424
}
2525
};

Diff for: tools/http-server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const axiosRequest = opts => {
9090
.then(res => {
9191
const { data } = res;
9292
successState(data);
93-
return data;
93+
return res;
9494
})
9595
.catch(error => {
9696
errorState(error);

0 commit comments

Comments
 (0)