 
  
   
  
  // Вешаем событие  клик на флаги
    $('[data-google-lang]').click(function () {
        TranslateSetCookie($(this).attr("data-google-lang"))
        // Перезагружаем страницу
        window.location.reload();
    });const currentActive = document.querySelector('[data-google-lang].active')
currentActive.classList.remove('active')
$(this).addClass('active') 
  
  import Vue, { VueConstructor, VNode} from 'vue'
interface Refs {
  $refs: {
    list: HTMLElement,
    input: HTMLInputElement,
  }
}
export default (Vue as VueConstructor<Vue & Refs>).extend({
  ...
  methods: {
    dropdownTrigger (e: Event | undefined) {
      this.$refs.list.scrollTo(0, 0) // наконец то отлично отрабатывает
    }
  }
  ...
}) 
  
   
  
   
  
  const data = { ... } // данные карточки
localStorage.setItem('card_data', JSON.stringify(data)) // само собой, вместо card_data пишешь что угодно 
  
  @/app/router.scrollBehavior.jsexport default function(to, from, savedPosition) {
	const toName = to.params.name
	if (to.name === 'menu-name') {
		let position = { selector: `#${ toName }` }
		return position
	}
} 
  
  <img :src=" '/' + prod.image ">       
  
   
  
  