added dark mode
This commit is contained in:
+9
-5
@@ -6,17 +6,21 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted} from 'vue'
|
||||
import {useConfigStore} from "@/store/configStore";
|
||||
import { onMounted } from 'vue'
|
||||
import { useConfigStore } from '@/store/configStore'
|
||||
import { initDarkmode } from '@core/stores/darkmode'
|
||||
|
||||
const router = useRouter()
|
||||
const config=useConfigStore()
|
||||
const config = useConfigStore()
|
||||
|
||||
initDarkmode()
|
||||
|
||||
function test() {
|
||||
console.log('roussss', router)
|
||||
router.push({ name: 'users' })
|
||||
}
|
||||
onMounted(async ()=>{
|
||||
await config.getConfigData()
|
||||
onMounted(async () => {
|
||||
await config.getConfigData()
|
||||
})
|
||||
|
||||
/*const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user