feat:TODO Ai

pull/794/head
alwayssuper 2025-07-18 10:34:50 +08:00
parent 1718135f24
commit 76edd5dda3
2 changed files with 3 additions and 3 deletions

View File

@ -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}`

View File

@ -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}`