[GH-ISSUE #13] 修改带宽(bandwidth)不能保存 #11

Closed
opened 2026-03-04 12:23:56 +03:00 by kerem · 1 comment
Owner

Originally created by @tianchaomaker on GitHub (Apr 27, 2020).
Original GitHub issue: https://github.com/brvphoenix/luci-app-wrtbwmon/issues/13

如题,修改带宽后不能报错,刷新后又成默认的1M。希望作者能修复这个问题。万分感谢

Originally created by @tianchaomaker on GitHub (Apr 27, 2020). Original GitHub issue: https://github.com/brvphoenix/luci-app-wrtbwmon/issues/13 如题,修改带宽后不能报错,刷新后又成默认的1M。希望作者能修复这个问题。万分感谢
kerem closed this issue 2026-03-04 12:23:56 +03:00
Author
Owner

@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)

<!-- gh-comment-id:621733623 --> @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. https://github.com/brvphoenix/luci-app-wrtbwmon/blob/bc534c2c281e893696637d405f2a83e229965b43/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js#L160 https://github.com/brvphoenix/luci-app-wrtbwmon/blob/bc534c2c281e893696637d405f2a83e229965b43/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js#L471
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-wrtbwmon-brvphoenix#11
No description provided.