innovation.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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">
  6. <el-image class="image" :src="innovation" fit="fill" />
  7. </el-col>
  8. </el-col>
  9. </el-row>
  10. </div>
  11. </template>
  12. <script setup lang="ts">
  13. // 基础
  14. import type { Ref } from 'vue';
  15. import { onMounted, ref } from 'vue';
  16. // 图片引入
  17. import innovation from '@/assets/innovation.png';
  18. // 接口
  19. // import { ToolsStore } from '@/stores/tool';
  20. // import type { IQueryResult } from '@/util/types.util';
  21. // const toolsAxios = ToolsStore();
  22. // 加载中
  23. const loading: Ref<any> = ref(false);
  24. const info: Ref<any> = ref({});
  25. // 请求
  26. onMounted(async () => {
  27. loading.value = true;
  28. search();
  29. loading.value = false;
  30. });
  31. const search = async () => {
  32. // let res: IQueryResult = await toolsAxios.dataCount();
  33. // if (res.errcode == '0') {
  34. // info.value = res.data;
  35. // }
  36. };
  37. </script>
  38. <style scoped lang="scss">
  39. .main {
  40. .one {
  41. .image {
  42. width: 100%;
  43. height: 250px;
  44. }
  45. }
  46. }
  47. </style>