From 28146a03a5ba74d2eb8750f745d64ce6fb9ceea9 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 7 Jul 2022 18:24:32 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/account/login/index.vue | 18 ++++++------------ src/pages/index/list/index.vue | 25 +++++++++++-------------- 2 files changed, 17 insertions(+), 26 deletions(-) diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index d42da04..60a5ad8 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -207,18 +207,12 @@ export default { }, // 获取学校列表 getSchool() { - // const schoolList = util.local.get('schoolList') - // if (schoolList && schoolList.length) { - // this.setSchool(schoolList) - // } else { - this.$get(this.api.querySchool, { - provinceId: '', - cityId: '' - }).then(({ list }) => { - this.setSchool(list) - // util.local.set('schoolList', list) - }).catch(res => {}) - // } + this.$get(this.api.querySchool, { + provinceId: '', + cityId: '' + }).then(({ list }) => { + this.setSchool(list) + }).catch(res => {}) }, // 切换标签 typeClick(tab) { diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue index 0ab609d..1df0e1e 100644 --- a/src/pages/index/list/index.vue +++ b/src/pages/index/list/index.vue @@ -1,5 +1,5 @@