mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 18:13:56 +08:00
🛸 Sync 2026-10-12 19:55:25
This commit is contained in:
1 parent
accbfee648
commit
8247b3bbae
16 files changed
+42
-95
No files matched your search
@@ -134,9 +134,9 @@ return view.extend({
|
||||
dhcp: uci.get('dhcp', 'lan', 'ignore') === '1' ? '0' : '1',
|
||||
ipv6: uci.get('network', 'wan6', 'auto') === '0' ? '0' : '1',
|
||||
https: uci.get('wizard', 'default', 'https') || '0',
|
||||
cookie_p: uci.get('wizard', 'default', 'persistent_cookies') || '1',
|
||||
cookie_p: uci.get('luci', 'main', 'persistent_cookies') || '1',
|
||||
landing_page: uci.get('luci', 'main', 'landing_page') || 'auto',
|
||||
autoupgrade_fm: uci.get('wizard', 'default', 'autoupgrade_fm') || '0',
|
||||
autoupgrade_fm: uci.get('luci', 'main', 'autoupgrade_fm') || '0',
|
||||
coremark: uci.get('wizard', 'default', 'coremark') || '0',
|
||||
wifi_ssid: baseSsid || (this.hasWireless ? 'Kwrt' : ''),
|
||||
wifi_key: (ap && ap.key) || ''
|
||||
@@ -482,7 +482,7 @@ return view.extend({
|
||||
|
||||
// I. 页面与会话设置(持久Cookie双向同步至luci系统底层与向导配置包)
|
||||
if (has(changed, 'cookie_p')) {
|
||||
uci.set('wizard', 'default', 'persistent_cookies', cur.cookie_p);
|
||||
uci.set('luci', 'main', 'persistent_cookies', cur.cookie_p);
|
||||
}
|
||||
if (has(changed, 'landing_page')) {
|
||||
uci.set('luci', 'main', 'landing_page', cur.landing_page);
|
||||
@@ -490,7 +490,7 @@ return view.extend({
|
||||
|
||||
// J. 向导专属项(完整保留 autoupgrade_fm 与 coremark)
|
||||
if (has(changed, 'autoupgrade_fm')) {
|
||||
uci.set('wizard', 'default', 'autoupgrade_fm', cur.autoupgrade_fm);
|
||||
uci.set('luci', 'main', 'autoupgrade_fm', cur.autoupgrade_fm);
|
||||
}
|
||||
if (has(changed, 'coremark')) {
|
||||
uci.set('wizard', 'default', 'coremark', cur.coremark);
|
||||
|
||||
Reference in new issue
Block a user