SIMPLE JS ERROR -> Accepting multiple value in method

Posted 4 months ago by nhayder

i'm passing 2 value to a vue method ID and the word 'wide' like this

v-on:change="updateThemeSwitch(theme.wide, 'wide')" // data are being passed correctly here

i'm accepting these data on a function

        updateThemeSwitch: function({commit}, elemstatus, name){

            console.log(''+name+''); // name is returning undefined value


what seems to be the problem ??? any ideas

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.