Browse Source

perf: 一些调整

main
betaqi 4 weeks ago
parent
commit
0029daa694
  1. 5
      src/views/engineering/config/index.vue

5
src/views/engineering/config/index.vue

@ -86,7 +86,6 @@ @@ -86,7 +86,6 @@
</template>
<script setup lang="ts">
import { ref, computed } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { ElMessage } from 'element-plus'
import {
@ -306,9 +305,7 @@ async function loadDeviceList() { @@ -306,9 +305,7 @@ async function loadDeviceList() {
const pageLoading = ref(true)
onMounted(async () => {
await loadChannelList()
await loadDeviceList()
await loadCategoryList()
await Promise.all([loadChannelList(), loadDeviceList(), loadCategoryList()])
pageLoading.value = false
})
</script>

Loading…
Cancel
Save