feat:TODO Ai
parent
1718135f24
commit
76edd5dda3
|
|
@ -151,7 +151,7 @@ const formData = ref({
|
||||||
groupIds: [] as number[]
|
groupIds: [] as number[]
|
||||||
})
|
})
|
||||||
|
|
||||||
// 监听经纬度变化,更新location
|
/** 监听经纬度变化,更新location */
|
||||||
watch([() => formData.value.longitude, () => formData.value.latitude], ([newLong, newLat]) => {
|
watch([() => formData.value.longitude, () => formData.value.latitude], ([newLong, newLat]) => {
|
||||||
if (newLong && newLat) {
|
if (newLong && newLat) {
|
||||||
formData.value.location = `${newLong},${newLat}`
|
formData.value.location = `${newLong},${newLat}`
|
||||||
|
|
|
||||||
|
|
@ -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}`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue