27 lines
616 B
Vue
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>
|