diff --git a/frontend/components.d.ts b/frontend/components.d.ts index af17996..3368455 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -16,6 +16,9 @@ declare module 'vue' { ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] + ElCol: typeof import('element-plus/es')['ElCol'] + ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] @@ -27,8 +30,13 @@ declare module 'vue' { ElInput: typeof import('element-plus/es')['ElInput'] ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] + ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTabPane: typeof import('element-plus/es')['ElTabPane'] + ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] + ElUpload: typeof import('element-plus/es')['ElUpload'] HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/frontend/src/components/HelloWorld.vue b/frontend/src/components/HelloWorld.vue deleted file mode 100644 index b58e52b..0000000 --- a/frontend/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index f0ac64e..7dff80b 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -57,6 +57,11 @@ const router = createRouter({ name: "login", component: () => import("@/views/login/index.vue"), }, + { + path: "/user/profile", + name: "userProfile", + component: () => import("@/views/user/profile/index.vue"), + }, ], }); diff --git a/frontend/src/views/components/header.vue b/frontend/src/views/components/header.vue index 3fdf3a3..1c6ed65 100644 --- a/frontend/src/views/components/header.vue +++ b/frontend/src/views/components/header.vue @@ -95,8 +95,7 @@ const handleCommand = (command: string) => { switch (command) { case "profile": console.log("跳转到个人中心"); - // TODO: 实现跳转逻辑 - ElMessage.info("跳转到个人中心"); + router.push('/user/profile'); break; case "account": console.log("跳转到账号管理"); diff --git a/frontend/src/views/user/profile/articlePublish.vue b/frontend/src/views/user/profile/articlePublish.vue new file mode 100644 index 0000000..4e8ddba --- /dev/null +++ b/frontend/src/views/user/profile/articlePublish.vue @@ -0,0 +1,569 @@ + + + + + diff --git a/frontend/src/views/user/profile/basicInfo.vue b/frontend/src/views/user/profile/basicInfo.vue new file mode 100644 index 0000000..9125cab --- /dev/null +++ b/frontend/src/views/user/profile/basicInfo.vue @@ -0,0 +1,408 @@ + + + + + diff --git a/frontend/src/views/user/profile/index.vue b/frontend/src/views/user/profile/index.vue new file mode 100644 index 0000000..c12ac3b --- /dev/null +++ b/frontend/src/views/user/profile/index.vue @@ -0,0 +1,405 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/user/profile/messages.vue b/frontend/src/views/user/profile/messages.vue new file mode 100644 index 0000000..35c84a0 --- /dev/null +++ b/frontend/src/views/user/profile/messages.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/frontend/src/views/user/profile/notifications.vue b/frontend/src/views/user/profile/notifications.vue new file mode 100644 index 0000000..46ee839 --- /dev/null +++ b/frontend/src/views/user/profile/notifications.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/frontend/src/views/user/profile/resourcePublish.vue b/frontend/src/views/user/profile/resourcePublish.vue new file mode 100644 index 0000000..e662ade --- /dev/null +++ b/frontend/src/views/user/profile/resourcePublish.vue @@ -0,0 +1,685 @@ + + + + + diff --git a/frontend/src/views/user/profile/security.vue b/frontend/src/views/user/profile/security.vue new file mode 100644 index 0000000..6a1b1cc --- /dev/null +++ b/frontend/src/views/user/profile/security.vue @@ -0,0 +1,150 @@ + + + + + diff --git a/frontend/src/views/user/profile/wallet.vue b/frontend/src/views/user/profile/wallet.vue new file mode 100644 index 0000000..e4e4c32 --- /dev/null +++ b/frontend/src/views/user/profile/wallet.vue @@ -0,0 +1,156 @@ + + + + +