forked from UnicornTeam/hackcube
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request UnicornTeam#1 from peacesky/Bug_Fix
Bug fix
- Loading branch information
Showing
15 changed files
with
467 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
- Store origin data when navigate to another page, and restore it when back to origin page. | ||
|
||
- AP List、Client List初始化为空 | ||
- NFC Page 按钮关闭无操作 | ||
- RF Page 里的TPMS数字输入框太窄 | ||
|
||
Done [Check All]for const of obj NOT for const in obj | ||
|
||
- INFO Update log 字体颜色太浅 | ||
Done WIFI 和 Client List | ||
- 点击了下面任意按钮停止Scan | ||
- WIFI 信道默认显示6 | ||
Done Client List 动态渲染 | ||
|
||
- 不同页面间的数据传递: | ||
- NFC获取到数据后,通知RF界面展示通知 | ||
- NFC页面生命周期会不会被destroy? | ||
- 返回后如何展示最新数据? | ||
- 在RF页面监听NFC,点击携带数据跳转到NFC并渲染数据 | ||
|
||
- How axios deal with: | ||
- 400 BAD Request | ||
- 404 NOT FOUND | ||
- 304 NOT MODIFIED | ||
- 500 INTERNAL SERVER ERROR | ||
|
||
|
||
- WIFI List 分页 | ||
- 测试能否正确处理INFO页面的304,增加其他页面的304处理逻辑 | ||
|
||
- Change all response parser correspond backend response api.NOTE: Use data-key to get data. | ||
|
||
- Improve axios resp handler of above's http status: | ||
- Handle 304 NOT MODIFIED in INFO page. | ||
|
||
``` | ||
Handling Errors | ||
axios.get('/user/12345') | ||
.catch(function (error) { | ||
if (error.response) { | ||
// The request was made and the server responded with a status code | ||
// that falls out of the range of 2xx | ||
console.log(error.response.data); | ||
console.log(error.response.status); | ||
console.log(error.response.headers); | ||
} else if (error.request) { | ||
// The request was made but no response was received | ||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of | ||
// http.ClientRequest in node.js | ||
console.log(error.request); | ||
} else { | ||
// Something happened in setting up the request that triggered an Error | ||
console.log('Error', error.message); | ||
} | ||
console.log(error.config); | ||
}); | ||
You can define a custom HTTP status code error range using the validateStatus config option. | ||
axios.get('/user/12345', { | ||
validateStatus: function (status) { | ||
return status < 500; // Reject only if the status code is greater than or equal to 500 | ||
} | ||
}) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
NODE_ENV: '"production"', | ||
BACKEND_HOST: '"http://localhost:5000"', | ||
UPLOAD_API: '"//localhost:5000/upload"' | ||
BACKEND_HOST: '"http://192.168.2.3:5000"', | ||
UPLOAD_API: '"//192.168.2.3:5000/upload"' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.