master
xy 3 years ago
parent 2763155c2e
commit 543b43e7e6

@ -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) {

@ -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

Loading…
Cancel
Save