mirror of
https://github.com/brvphoenix/luci-app-wrtbwmon.git
synced 2026-04-27 09:15:52 +03:00
[GH-ISSUE #13] 修改带宽(bandwidth)不能保存 #11
Labels
No labels
Can't reproduce
WaitingInfo
bug
compatibility
duplicate
invalid
no-issue-activity
not a bug
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-wrtbwmon-brvphoenix#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tianchaomaker on GitHub (Apr 27, 2020).
Original GitHub issue: https://github.com/brvphoenix/luci-app-wrtbwmon/issues/13
如题,修改带宽后不能报错,刷新后又成默认的1M。希望作者能修复这个问题。万分感谢
@brvphoenix commented on GitHub (Apr 30, 2020):
@tianchaomaker
Currently, there is no ideal method to solve this issue.
If saving the value to config, some side effects can't be avoid, such as https://github.com/brvphoenix/luci-app-wrtbwmon/issues/12#issuecomment-606056538.
Besides, the config can also be saved in local storage, which I think is not the general behavior for the LuCI.
You can modified the codes bellow to modified the default value permanently.
github.com/brvphoenix/luci-app-wrtbwmon@bc534c2c28/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js (L160)github.com/brvphoenix/luci-app-wrtbwmon@bc534c2c28/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js (L471)