Files
workspace/code/sllog/Sllog-User-Ui/src/App.vue
T
2025-06-18 16:30:01 +08:00

27 lines
616 B
Vue

<template>
<router-view></router-view>
</template>
<script setup lang="ts">
import { onMounted } from "vue";
import { getAreaListApi } from "@/service/area";
import { getPropertyListApi } from "./service/peoperty";
import { useCommonOptions } from "./store/commonOptions";
const commonOptions = useCommonOptions();
onMounted(() => {
handleInitData();
});
const handleInitData = () => {
getAreaListApi().then((res) => {
commonOptions.areaOptions.value = res.data;
});
getPropertyListApi().then((res) => {
commonOptions.propertyOptions.value = res.data;
});
};
</script>
<style scoped></style>