39 lines
996 B
Vue
39 lines
996 B
Vue
<template>
|
|
<AConfigProvider direction="rtl">
|
|
<RouterView />
|
|
<!-- <button @click="test">this is ssss</button>-->
|
|
</AConfigProvider>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { onMounted } from 'vue'
|
|
import { useConfigStore } from '@/store/configStore'
|
|
import { initDarkmode } from '@core/stores/darkmode'
|
|
|
|
const router = useRouter()
|
|
const config = useConfigStore()
|
|
|
|
initDarkmode()
|
|
|
|
function test() {
|
|
console.log('roussss', router)
|
|
router.push({ name: 'users' })
|
|
}
|
|
onMounted(async () => {
|
|
await config.getConfigData()
|
|
})
|
|
|
|
/*const router = useRouter()
|
|
console.log('this is router', router.currentRoute.value)*/
|
|
/*import { useStaticApiListsStore } from '@/store/staticApisStore'
|
|
useStaticApiListsStore().getWholeData()*/
|
|
//define store
|
|
/*import { useStaticApiListsStore } from '@/store/staticApisStore'
|
|
import { getToken } from '@/utils'*/
|
|
/*const store = useStaticApiListsStore()
|
|
const token = getToken()
|
|
if (token) store.getMyInfo()*/
|
|
</script>
|
|
|
|
<style lang="less"></style>
|