What is Vue way to access to data from methods?

后端 未结 3 1153
攒了一身酷
攒了一身酷 2021-02-01 12:12

I have the following code:

{
  data: function ()  {
    return {
      questions: [],
      sendButtonDisable: false,
    }
  },

  methods: { 
    postQuestions         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 12:47

    Try this instead

    ...
    methods: 
    { 
       postQuestionsContent ()
       {
          this.sendButtonDisable = true;
       }
    }
    

    Registering your methods in the above manner should resolve the issue.

提交回复
热议问题