<template loading="true">
  <el-config-provider :locale="appStore.locale" :size="appStore.size">
    <router-view />
    <div>123</div>
    <div v-for="item in aarr">
      1<span v-for="itm in item.features">{{ itm.geometry.coordinates }}1</span>
    </div>
    <el-button type="primary" size="default" @click="a" class="ml-100" v-loading.fullscreen.lock="fullscreenLoading">123</el-button>
  </el-config-provider>
</template>

<script setup lang="ts">
import useSettingsStore from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import useAppStore from '@/store/modules/app';
import { getProjectTeam } from './utils/projectTeam';
import request from '@/utils/request';
const appStore = useAppStore();
const fullscreenLoading = ref(false);
const aarr = ref([]);
const a = () => {
  fullscreenLoading.value = true;
  request({
    url: '/project/project/json',
    method: 'get'
  }).then((res) => {
    console.log(res);
    aarr.value = res.data.layers;

    fullscreenLoading.value = false;
  });
};

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
    getProjectTeam();
  });
});
</script>
