perf(导航图标)
|
@ -2,31 +2,31 @@ import { ref } from 'vue'
|
|||
import { defineStore } from 'pinia'
|
||||
|
||||
const useSysStore = defineStore(
|
||||
'sys',
|
||||
() => {
|
||||
const theme = ref('')
|
||||
const mode = ref('light')
|
||||
const modeAuto = ref(false)
|
||||
const fontSize = ref(1)
|
||||
'sys',
|
||||
() => {
|
||||
const theme = ref('')
|
||||
const mode = ref('light')
|
||||
const modeAuto = ref(false)
|
||||
const fontSize = ref(1)
|
||||
|
||||
function setTheme(stheme = '') {
|
||||
theme.value = stheme ? stheme : 'orange'
|
||||
}
|
||||
|
||||
return {
|
||||
theme,
|
||||
mode,
|
||||
modeAuto,
|
||||
fontSize,
|
||||
setTheme,
|
||||
}
|
||||
},
|
||||
{
|
||||
persist: {
|
||||
enabled: true,
|
||||
strategies: [{ key: 'sys-store' }],
|
||||
},
|
||||
function setTheme(stheme = '') {
|
||||
theme.value = stheme ? stheme : 'red'
|
||||
}
|
||||
|
||||
return {
|
||||
theme,
|
||||
mode,
|
||||
modeAuto,
|
||||
fontSize,
|
||||
setTheme,
|
||||
}
|
||||
},
|
||||
{
|
||||
persist: {
|
||||
enabled: true,
|
||||
strategies: [{ key: 'sys-store' }],
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
export default useSysStore
|
||||
|
|
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 3.4 KiB |
BIN
static/a-my.png
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 6.1 KiB |
BIN
static/index.png
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 3.4 KiB |
BIN
static/my.png
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 4.5 KiB |
BIN
static/order.png
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 6.1 KiB |