Vue methods keeps requesting backend requests after using AJAX?

  var vm = new Vue({
    el: "-sharpapp",
    data: {
        nowpage:0,
        typenum:1
    }, 
    methods:{  
        test: function () {             
            $.ajax({
                url: "/xxx/xxx",
                data: {
                    PageNum: this.nowpage,
                    PageSize: this.typenum
                },
                type: "post",
                dataType: "json",
                success: function (data) {
                    ...
                     //pagination
                      $.jqPaginator("-sharppagination", {
                      ...
                      );
                    }
            });          
        }
    }
});
vm.test();
    
    vue,
Mar.06,2021

Vue.js conflicts with the callback function of the pagination control, and the solution has not been figured out for the time being. Replace it with your own manual paging

Menu