perf(导航图标)

This commit is contained in:
Ankkaya 2024-09-02 15:48:21 +08:00
parent 593887ae2e
commit c6f1d562ad
9 changed files with 23 additions and 23 deletions

View File

@ -2,31 +2,31 @@ import { ref } from 'vue'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
const useSysStore = defineStore( const useSysStore = defineStore(
'sys', 'sys',
() => { () => {
const theme = ref('') const theme = ref('')
const mode = ref('light') const mode = ref('light')
const modeAuto = ref(false) const modeAuto = ref(false)
const fontSize = ref(1) const fontSize = ref(1)
function setTheme(stheme = '') { function setTheme(stheme = '') {
theme.value = stheme ? stheme : 'orange' theme.value = stheme ? stheme : 'red'
}
return {
theme,
mode,
modeAuto,
fontSize,
setTheme,
}
},
{
persist: {
enabled: true,
strategies: [{ key: 'sys-store' }],
},
} }
return {
theme,
mode,
modeAuto,
fontSize,
setTheme,
}
},
{
persist: {
enabled: true,
strategies: [{ key: 'sys-store' }],
},
}
) )
export default useSysStore export default useSysStore

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 B

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 447 B

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 934 B

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 B

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

After

Width:  |  Height:  |  Size: 6.1 KiB