You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
import { ref } from 'vue'
|
|
import { defineStore } from 'pinia'
|
|
|
|
export const usePinia = defineStore('usePinia', () => {
|
|
//主题
|
|
const theme=ref('light')
|
|
const themeChange=(v)=>{
|
|
theme.value=v
|
|
}
|
|
|
|
//获取基本信息状态
|
|
let baseInfoStatus=ref(false);
|
|
const baseInfoStatusChange=(status)=>{
|
|
baseInfoStatus.value=status
|
|
}
|
|
|
|
return { theme,themeChange,baseInfoStatus,baseInfoStatusChange}
|
|
})
|