import { LocationUtils } from '@12333/utils'; 
 | 
import { useUserStoreWithOut } from '@/stores/modules/user'; 
 | 
  
 | 
export async function setLocationCity() { 
 | 
  try { 
 | 
    let res = await LocationUtils.getLocation(); 
 | 
    if (res?.result?.ad_info?.city) { 
 | 
      const userStore = useUserStoreWithOut(); 
 | 
      userStore.setLocationCity(res.result.ad_info.city, res.result.ad_info.province); 
 | 
    } 
 | 
  } catch (error) {} 
 | 
} 
 |