Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-23 11:48:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3218f09895d7910fc2a0722a45006cadc26f44ea
3218f098
1 parent
d25e7b2e
fix API返回结构调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
src/views/client/chooseSchool.vue
src/views/me/index.vue
src/views/client/chooseSchool.vue
View file @
3218f09
...
...
@@ -41,7 +41,8 @@ import { kgListAPI } from '@/api/C/kg.js'
export default {
beforeRouteEnter (to, from, next) {
(async () => {
to.params.schoolList = await kgListAPI();
const { data } = await kgListAPI();
to.params.schoolList = data;
next();
})()
},
...
...
src/views/me/index.vue
View file @
3218f09
...
...
@@ -157,14 +157,16 @@ const itemList = [
// 异步获取我的列表数量信息
async function getMySum() {
userInfo.value = await myInfoAPI();
const { data } = await myInfoAPI();
userInfo.value = data;
_.each(itemList, item => {
item.sum = userInfo.value[item.key]
});
}
onMounted(async () => {
actions.value = await myPerformerAPI();
const { data } = await myPerformerAPI();
actions.value = data;
getMySum();
});
...
...
Please
register
or
login
to post a comment