diff --git a/src/renderer/src/api/system/user.js b/src/renderer/src/api/system/user.js index 68c5133..c83e0f6 100644 --- a/src/renderer/src/api/system/user.js +++ b/src/renderer/src/api/system/user.js @@ -37,4 +37,13 @@ export function getUserProfile() { method: 'post', data: data }) - } \ No newline at end of file + } + + // 修改用户,这个不涉及到用户的权限、角色更新 +export function updateUserInfo(data) { + return request({ + url: '/system/user/updateUserInfo', + method: 'put', + data: data + }) +} \ No newline at end of file diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index a9db674..b0f04f0 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -231,7 +231,7 @@ const getSubject = async () => { subjectList.value = rows.filter(item => item.edustage == edustage && item.edusubject == edusubject && isHaveUnit(item.id)) localStorage.setItem('subjectList', JSON.stringify(subjectList.value)) } - + // 默认第一个 curBookName.value = subjectList.value[0].itemtitle curBookId.value = subjectList.value[0].id @@ -305,6 +305,7 @@ onMounted(() => { border-bottom: solid #f4f5f7 1px; font-size: 15px; font-weight: 600; + border-radius: 10px 10px 0 0; } .book-list { diff --git a/src/renderer/src/components/select-subject/index.vue b/src/renderer/src/components/select-subject/index.vue new file mode 100644 index 0000000..816fc1e --- /dev/null +++ b/src/renderer/src/components/select-subject/index.vue @@ -0,0 +1,149 @@ + + + + 选择你的年级、学科 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/login/index.vue b/src/renderer/src/views/login/index.vue index 1192741..aed6dab 100644 --- a/src/renderer/src/views/login/index.vue +++ b/src/renderer/src/views/login/index.vue @@ -33,6 +33,8 @@ + +