|
|
@@ -54,6 +54,10 @@ const props = defineProps({
|
|
|
type: Boolean,
|
|
|
defalut: false,
|
|
|
},
|
|
|
+ autoGo: {
|
|
|
+ type: Boolean,
|
|
|
+ defalut: false,
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
const farmVal = ref(sessionStorage.getItem("farmId")*1 || "");
|
|
|
@@ -118,7 +122,7 @@ const getGardenList = () => {
|
|
|
resData.push({name: item.name,organId:item.id, wkt: item.pointWkt})
|
|
|
}
|
|
|
options.value = resData
|
|
|
- if(userInfo.userName !== "13797066447"){
|
|
|
+ if(props.autoGo && userInfo.userName !== "13797066447"){
|
|
|
farmVal.value = resData[0].organId
|
|
|
toggleFarm(resData[0].organId)
|
|
|
}
|