35 lines
918 B
Vue
35 lines
918 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";
|
||
|
|
|
||
|
|
const router = useRouter()
|
||
|
|
const config=useConfigStore()
|
||
|
|
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>
|