diff --git a/.env.production b/.env.production
index 523da48..a5257d5 100644
--- a/.env.production
+++ b/.env.production
@@ -3,7 +3,7 @@
# 页面标题
VITE_APP_TITLE = 燃气作业感知系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:21409
+VITE_APP_API_BASEURL = https://gas.task.smartlog.work/
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.env.production b/.env.production
index 523da48..a5257d5 100644
--- a/.env.production
+++ b/.env.production
@@ -3,7 +3,7 @@
# 页面标题
VITE_APP_TITLE = 燃气作业感知系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:21409
+VITE_APP_API_BASEURL = https://gas.task.smartlog.work/
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/src/views/dashboard/map/callDialog.vue b/src/views/dashboard/map/callDialog.vue
index b08b86b..17aec2f 100644
--- a/src/views/dashboard/map/callDialog.vue
+++ b/src/views/dashboard/map/callDialog.vue
@@ -46,26 +46,32 @@
baseParams.id = ''
iframeUrl.value = getUrlToStr(url, baseParams)
}
- navigator.getUserMedia({ video: true, audio: true }, (stream) => {
- console.log('已点击允许,开启成功')
- }, (error) => {
- console.log('错误:', error)
+ // navigator.getUserMedia = navigator.getUserMedia ||
+ // navigator.webkitGetUserMedia ||
+ // navigator.mozGetUserMedia ||
+ // navigator.msGetUserMedia;
+
+ // if (navigator.getUserMedia) {
+ // console.log('支持获取麦克风权限')
+ // // 支持
+ // navigator.getUserMedia({ audio: true }, function onSuccess(stream) {
+ // console.log('已点击允许,开启成功');
+ // }, function onError(error) {
+ // console.log("错误:", error)
+ // })
+ // } else {
+ // // 不支持
+ // console.log('不支持获取麦克风权限')
+ // }
+ timer.value = setTimeout(() => {
+ () => {
+ var iframe: any = document.querySelector('#player-iframe')
+ if (iframe) {
+ console.log(iframe, '获得iframe标签')
+ iframe.allow = 'microphone *;camera *'
+ }
+ }
})
- // timer.value = setTimeout(() => {
- // var iframe: any = document.querySelector('#player-iframe')
- // if (iframe?.attachEvent) {
- // iframe.attachEvent('onload', () => {
- // // iframe加载完毕以后执行操作
- // loading.value = false
- // })
- // }
- // else {
- // iframe.onload = () => {
- // // iframe加载完毕以后执行操作
- // loading.value = false
- // }
- // }
- // })
}
// 弹窗关闭
watch(() => dialogFormVisible.value, (newVal) => {
@@ -89,7 +95,7 @@
-
+
-
+
diff --git a/.env.production b/.env.production
index 523da48..a5257d5 100644
--- a/.env.production
+++ b/.env.production
@@ -3,7 +3,7 @@
# 页面标题
VITE_APP_TITLE = 燃气作业感知系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:21409
+VITE_APP_API_BASEURL = https://gas.task.smartlog.work/
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/src/views/dashboard/map/callDialog.vue b/src/views/dashboard/map/callDialog.vue
index b08b86b..17aec2f 100644
--- a/src/views/dashboard/map/callDialog.vue
+++ b/src/views/dashboard/map/callDialog.vue
@@ -46,26 +46,32 @@
baseParams.id = ''
iframeUrl.value = getUrlToStr(url, baseParams)
}
- navigator.getUserMedia({ video: true, audio: true }, (stream) => {
- console.log('已点击允许,开启成功')
- }, (error) => {
- console.log('错误:', error)
+ // navigator.getUserMedia = navigator.getUserMedia ||
+ // navigator.webkitGetUserMedia ||
+ // navigator.mozGetUserMedia ||
+ // navigator.msGetUserMedia;
+
+ // if (navigator.getUserMedia) {
+ // console.log('支持获取麦克风权限')
+ // // 支持
+ // navigator.getUserMedia({ audio: true }, function onSuccess(stream) {
+ // console.log('已点击允许,开启成功');
+ // }, function onError(error) {
+ // console.log("错误:", error)
+ // })
+ // } else {
+ // // 不支持
+ // console.log('不支持获取麦克风权限')
+ // }
+ timer.value = setTimeout(() => {
+ () => {
+ var iframe: any = document.querySelector('#player-iframe')
+ if (iframe) {
+ console.log(iframe, '获得iframe标签')
+ iframe.allow = 'microphone *;camera *'
+ }
+ }
})
- // timer.value = setTimeout(() => {
- // var iframe: any = document.querySelector('#player-iframe')
- // if (iframe?.attachEvent) {
- // iframe.attachEvent('onload', () => {
- // // iframe加载完毕以后执行操作
- // loading.value = false
- // })
- // }
- // else {
- // iframe.onload = () => {
- // // iframe加载完毕以后执行操作
- // loading.value = false
- // }
- // }
- // })
}
// 弹窗关闭
watch(() => dialogFormVisible.value, (newVal) => {
@@ -89,7 +95,7 @@
-
+
-
+
diff --git a/src/views/dashboard/map/index.vue b/src/views/dashboard/map/index.vue
index 0bda852..14b3ada 100644
--- a/src/views/dashboard/map/index.vue
+++ b/src/views/dashboard/map/index.vue
@@ -56,6 +56,7 @@
viewMode: '2D', // 是否为3D地图模式
zoom: 17, // 初始化地图级别
resizeEnable: true,
+ center: [116.26759100, 39.91563500],
})
// 地图图块加载完成后触发
map.value.on('complete', () => {