{{ searchText ? '未找到相关文章' : '暂无文章' }}
+
- Edit
- components/HelloWorld.vue to test HMR
-
- Check out - create-vue, the official Vue + Vite starter -
-- Learn more about IDE Support for Vue in the - Vue Docs Scaling up Guide. -
-Click on the Vite and Vue logos to learn more
- - - 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 @@ + +管理您的技术文章
+{{ searchText ? '未找到相关文章' : '暂无文章' }}
+管理您的个人信息
+支持 JPG、PNG、GIF 格式,大小不超过 2MB
+查看系统消息和通知
+暂无消息
+设置通知偏好
+管理您的应用资源
+{{ searchText || filterType ? '未找到相关资源' : '暂无资源' }}
+支持 JPG、PNG、GIF 格式,单张图片不超过 2MB,最多上传 5 张
+保护您的账户安全
+查看余额和交易记录
+暂无交易记录
+