|
@@ -151,12 +151,12 @@ const authPasswordVisible = ref(false) // 定义密码可见性状态
|
|
|
const authInfo = ref<IotDeviceAuthInfoVO>({} as IotDeviceAuthInfoVO) // 定义设备认证信息对象
|
|
const authInfo = ref<IotDeviceAuthInfoVO>({} as IotDeviceAuthInfoVO) // 定义设备认证信息对象
|
|
|
|
|
|
|
|
// TODO @AI:注释使用 /** */ 风格,方法注释;
|
|
// TODO @AI:注释使用 /** */ 风格,方法注释;
|
|
|
-// 控制地图显示的标志
|
|
|
|
|
|
|
+/** 控制地图显示的标志 */
|
|
|
const showMap = computed(() => {
|
|
const showMap = computed(() => {
|
|
|
return !!(device.longitude && device.latitude)
|
|
return !!(device.longitude && device.latitude)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-// 获取位置字符串,用于地图组件
|
|
|
|
|
|
|
+/** 获取位置字符串,用于地图组件 */
|
|
|
const getLocationString = () => {
|
|
const getLocationString = () => {
|
|
|
if (device.longitude && device.latitude) {
|
|
if (device.longitude && device.latitude) {
|
|
|
return `${device.longitude},${device.latitude}`
|
|
return `${device.longitude},${device.latitude}`
|