master
xy 2 years ago
parent 1973bb563e
commit 9c49ee3f2b

@ -1,10 +1,11 @@
import request from "@/utils/request"; import request from "@/utils/request";
export function index(params) { export function index(params,isLoading=true) {
return request({ return request({
method: 'get', method: 'get',
url: '/api/admin/draw-prize/index', url: '/api/admin/draw-prize/index',
params params,
isLoading
}) })
} }

@ -163,8 +163,8 @@
this.select.page = 1; this.select.page = 1;
this.load(); this.load();
}, },
async load() { async load(isLoading=true) {
const res = await index(this.select) const res = await index(this.select,isLoading)
this.total = res.total this.total = res.total
this.list = res.data this.list = res.data
}, },
@ -186,7 +186,7 @@
this.loadActivity() this.loadActivity()
window.onfocus = () => { window.onfocus = () => {
this.load(); this.load(false);
} }
}, },
destroyed() { destroyed() {

@ -203,6 +203,7 @@ export default {
}, 150); }, 150);
} catch (err) { } catch (err) {
console.log(err); console.log(err);
this.isOver = true;
} }
} else { } else {
this.flag = false; this.flag = false;

Loading…
Cancel
Save