Vuetify v-select onchange event returns previously selected value instead of current

前端 未结 3 758
Happy的楠姐
Happy的楠姐 2020-12-28 17:40

I have a dropdown that I\'m wanting to use as a list of URLs to navigate to other pages. The issue I\'m running into is the onchange

3条回答
  •  灰色年华
    2020-12-28 18:02

    I don't exctly know why ${select.src} is holding previous value on change event. You can give a try with below code:

    
    
    methods: {
          changeRoute(selectObj) {
            console.log(selectObj)
            console.log(selectObj.src)
         }
    }
    

提交回复
热议问题