mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-09 23:04:32 +00:00
feat:TODO Ai
This commit is contained in:
@@ -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}`
|
||||||
|
|||||||
Reference in New Issue
Block a user