@ -1,10 +1,11 @@
import request from "@/utils/request";
export function index(params) {
export function index(params,isLoading=true) {
return request({
method: 'get',
url: '/api/admin/draw-prize/index',
params
params,
isLoading
})
}
@ -163,8 +163,8 @@
this.select.page = 1;
this.load();
},
async load() {
const res = await index(this.select)
async load(isLoading=true) {
const res = await index(this.select,isLoading)
this.total = res.total
this.list = res.data
@ -186,7 +186,7 @@
this.loadActivity()
window.onfocus = () => {
this.load(false);
destroyed() {
@ -203,6 +203,7 @@ export default {
}, 150);
} catch (err) {
console.log(err);
this.isOver = true;
} else {
this.flag = false;