<script setup>
import { onMounted, reactive } from "vue";
import { getInfo } from "../api/commonapi";//引入接口方法
import { BorderBox3 as DvBorderBox3 } from '@kjgl77/datav-vue3'
const userInfo = reactive({
  userName: "XXX",
  age: "XX",
});
onMounted(() => {
//调接口，处理返回结果
  getInfo({ orgid: "3348847743" }).then((res) => {
    userInfo.userName=res.userName
    userInfo.age=res.age
  });
});
</script>
 
<template>
  <h1>{{ userInfo.userName }}---{{ userInfo.age }}</h1>
  <div w50rem h18rem flex justify-center items-center bg-dark>
    <dv-decoration1 style="width:200px;height:50px;" />
  </div>
</template>
 
<style scoped>
</style>