From 543b43e7e6dd6e3b580b28705017d2051a80fb93 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Wed, 26 Apr 2023 10:25:08 +0800 Subject: [PATCH] 2023-4-26 --- common/http.interceptor.js | 4 ++-- pages/nursingCalendar/nursingCalendar.vue | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index e49ed55..2defd85 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -22,7 +22,7 @@ const install = (Vue, vm) => { // 请求拦截部分,如配置,每次请求前都会执行 Vue.prototype.$u.http.interceptor.request = (config) => { - console.log('config-http', config) + //console.log('config-http', config) // 引用token // 方式一,存放在vuex的token,假设使用了uView封装的vuex方式 // 见:https://uviewui.com/components/globalVariable.html @@ -38,7 +38,7 @@ const install = (Vue, vm) => { // 响应拦截,如配置,每次请求结束都会执行本方法 Vue.prototype.$u.http.interceptor.response = (res) => { - console.log('res-http', res) + //console.log('res-http', res) if (res.statusCode === 200) { diff --git a/pages/nursingCalendar/nursingCalendar.vue b/pages/nursingCalendar/nursingCalendar.vue index 28bbeb5..533088f 100644 --- a/pages/nursingCalendar/nursingCalendar.vue +++ b/pages/nursingCalendar/nursingCalendar.vue @@ -382,8 +382,10 @@ this.getCalendar(this.select.year, this.select.month) this.selector.date = `${this.select.year}-${this.select.month}-${this.select.date}` - this.getList() - this.getCalendarStatus() + this.$u.debounce(() => { + this.getList() + this.getCalendarStatus() + },700) }, immediate: true, deep: true