update
This commit is contained in:
@@ -53,7 +53,8 @@
|
||||
const { isShow, className, setIsShow } = useMoveClass();
|
||||
|
||||
function init() {
|
||||
Map.initMap({ el: 'mapContainer' });
|
||||
let mapContainer = document.querySelector('.mapContainer');
|
||||
mapContainer && Map.initMap({ el: 'mapContainer' });
|
||||
getMapList();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,10 @@ export function useDepart() {
|
||||
getOptionData();
|
||||
});
|
||||
|
||||
function setOrgCode(val) {
|
||||
orgCode.value = val;
|
||||
}
|
||||
|
||||
function setOption(data) {
|
||||
option.value = data;
|
||||
orgCode.value = data[0]?.orgCode;
|
||||
@@ -26,6 +30,7 @@ export function useDepart() {
|
||||
|
||||
return {
|
||||
orgCode,
|
||||
setOrgCode,
|
||||
option,
|
||||
setOption,
|
||||
fieldNames,
|
||||
|
||||
Reference in New Issue
Block a user