diff --git a/.eslintrc.js b/.eslintrc.js index dd8f769..cf2d9ca 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,9 +3,10 @@ module.exports = { browser: true, commonjs: true, es2021: true, - node: true + node: true, }, - extends: ['standard', 'plugin:vue/vue3-essential'], + parser: 'vue-eslint-parser', + extends: ['standard','eslint:recommended', 'plugin:vue/vue3-essential'], parserOptions: { ecmaVersion: 12, parser: '@typescript-eslint/parser' diff --git a/package.json b/package.json index ba0c992..01fa3fd 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "vite-plugin-style-import": "^1.0.1", "vite-plugin-svg-icons": "^1.0.5", "vite-plugin-vconsole": "^1.1.0", + "vue-eslint-parser": "^9.3.1", "vue-tsc": "^0.0.24" }, "license": "ISC", diff --git a/src/api/manage.ts b/src/api/manage.ts index d2d0d52..2a2818d 100644 --- a/src/api/manage.ts +++ b/src/api/manage.ts @@ -69,6 +69,13 @@ export const getLiveCapacity = async function (body: {}): Promise> { + const url = `${HTTP_PREFIX}/live/capacity?sn=${id}` + const result = await request.get(url) + return result.data +} + // Start Livestream export const startLivestream = async function (body: {}): Promise> { const url = `${HTTP_PREFIX}/live/streams/start` diff --git a/src/components/GMap.vue b/src/components/GMap.vue index db81615..762993f 100644 --- a/src/components/GMap.vue +++ b/src/components/GMap.vue @@ -140,14 +140,14 @@ {{ 10 > (deviceInfo.device.battery.remain_flight_time % 60) ? '0' : ''}}{{deviceInfo.device.battery.remain_flight_time % 60 }} -
-
直播视频
+
+
直播视频
- +
+ +