File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ declare module '@vue/runtime-core' {
2121 AFormItem : typeof import ( 'ant-design-vue/es' ) [ 'FormItem' ]
2222 AInput : typeof import ( 'ant-design-vue/es' ) [ 'Input' ]
2323 AInputGroup : typeof import ( 'ant-design-vue/es' ) [ 'InputGroup' ]
24+ AInputNumber : typeof import ( 'ant-design-vue/es' ) [ 'InputNumber' ]
2425 AInputPassword : typeof import ( 'ant-design-vue/es' ) [ 'InputPassword' ]
2526 ALayout : typeof import ( 'ant-design-vue/es' ) [ 'Layout' ]
2627 ALayoutContent : typeof import ( 'ant-design-vue/es' ) [ 'LayoutContent' ]
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ const callback = (media: { matches: any; }) => {
1616 dark_mode (false )
1717 settings .set_theme (' auto' )
1818 }
19+ } else {
20+ dark_mode (settings .preference_theme === ' dark' )
1921 }
2022}
2123
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {message} from 'ant-design-vue'
1010const {$gettext} = useGettext ()
1111
1212const settingsStore = useSettingsStore ()
13- const theme = ref (' auto ' )
13+ const theme = ref (settingsStore . theme )
1414const data = ref ({
1515 server: {
1616 http_port: 9000 ,
You can’t perform that action at this time.
0 commit comments