修复: warehouse 5个文件 inline type import 拆分为独立语句
This commit is contained in:
@@ -11,7 +11,8 @@ import { useMapStore } from "../stores/mapStore"
|
||||
import { useRoute } from "vue-router"
|
||||
import DeviceInfo from "./DeviceInfo.vue"
|
||||
import http from '../api/http.js'
|
||||
import { gwGet, fetchCameras, type StandardDevice } from '../api/gateway.ts'
|
||||
import { gwGet, fetchCameras } from '../api/gateway.ts'
|
||||
import type { StandardDevice } from '../api/gateway.ts'
|
||||
// TODO Phase2: 遍历 base_device 加载 MapModelId → VgoMap 标记; 告警设备红色闪烁
|
||||
|
||||
import initMessageHub from './index.js' // 导入消息中心初始化函数
|
||||
|
||||
@@ -119,7 +119,8 @@ import { ElMessage } from 'element-plus'
|
||||
import * as echarts from 'echarts'
|
||||
import store from '@/store'
|
||||
import http from '@/api/http'
|
||||
import { gwGet, fetchCameras, type StandardDevice } from '@/api/gateway'
|
||||
import { gwGet, fetchCameras } from '@/api/gateway'
|
||||
import type { StandardDevice } from '@/api/gateway'
|
||||
|
||||
// 环境变量类型定义
|
||||
interface EnvironmentVariable {
|
||||
|
||||
@@ -61,7 +61,8 @@
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { VideoPlay } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { fetchCameras, gwGet, type Camera } from '@/api/gateway'
|
||||
import { fetchCameras, gwGet } from '@/api/gateway'
|
||||
import type { Camera } from '@/api/gateway'
|
||||
|
||||
const cameras = ref<Camera[]>([])
|
||||
const selectedCamera = ref<Camera | null>(null)
|
||||
|
||||
@@ -92,7 +92,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { VideoCamera } from '@element-plus/icons-vue'
|
||||
import { fetchCameras, gwGet, gwPost, type Camera } from '@/api/gateway'
|
||||
import { fetchCameras, gwGet, gwPost } from '@/api/gateway'
|
||||
import type { Camera } from '@/api/gateway'
|
||||
|
||||
const cameras = ref<Camera[]>([])
|
||||
const selectedCamera = ref<Camera | null>(null)
|
||||
|
||||
@@ -106,7 +106,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, watch } from 'vue'
|
||||
import { fetchCameras, gwGet, gwPost, type Camera } from '@/api/gateway'
|
||||
import { fetchCameras, gwGet, gwPost } from '@/api/gateway'
|
||||
import type { Camera } from '@/api/gateway'
|
||||
|
||||
const cameras = ref<Camera[]>([])
|
||||
const streamUrls = ref<Record<string, string>>({})
|
||||
|
||||
Reference in New Issue
Block a user