index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
  5. <el-col :span="24" class="one">系统首页</el-col>
  6. </el-col>
  7. </el-row>
  8. </div>
  9. </template>
  10. <script setup lang="ts">
  11. // 基础
  12. import type { Ref } from 'vue';
  13. // reactive,
  14. import { onMounted, ref, getCurrentInstance } from 'vue';
  15. // 接口
  16. //import { TestStore } from '@common/src/stores/test';
  17. //import type { IQueryResult } from '@/util/types.util';
  18. //const testAxios = TestStore();
  19. const { proxy } = getCurrentInstance() as any;
  20. // 加载中
  21. const loading: Ref<any> = ref(false);
  22. // 分页数据
  23. // const skip = 0;
  24. // const limit = proxy.limit;;
  25. // 请求
  26. onMounted(async () => {
  27. loading.value = true;
  28. // await search({ skip, limit });
  29. loading.value = false;
  30. });
  31. //const search = async (e: { skip: number; limit: number }) => {
  32. // const info = { skip: e.skip, limit: e.limit, ...searchInfo.value };
  33. // const res: IQueryResult = await testAxios.query(info);
  34. // console.log(res);
  35. //};
  36. </script>
  37. <style scoped lang="scss"></style>