1404/11/04- first
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user