nuxt,js vue,js how to fetch data inside of table

后端 未结 1 559
天涯浪人
天涯浪人 2021-01-23 13:37

i am new in vuetify and nuxt.js

i am getting data from database but i want to show that in vuetify table.

Laravel API Controller

pu         


        
相关标签:
1条回答
  • 2021-01-23 14:16

    You should use created event, in this event, call your businesslist API and in the response, you should assign received data to your businessuser vue js variable. Let see here one example.

    created () {
          this.initialize();
        },
    
     methods: {
       initialize () { 
        this.businessuser = businesslistApiCalling();    
       }
     }
    

    businesslistApiCalling(); is just an example you should call here the API method to receive Json data from the Server.

    0 讨论(0)
提交回复
热议问题