From cbcfe9365ad0ccf09cca0541718e5811a297e29a Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Sat, 2 Nov 2024 07:36:34 +0800 Subject: [PATCH] add MyPeer for user --- src/api/user.js | 7 + src/router/index.js | 8 +- src/utils/i18n/zh_CN.json | 9 + src/views/my/peer/index.vue | 367 ++++++++++++++++++++++++++++++++++++ 4 files changed, 390 insertions(+), 1 deletion(-) create mode 100644 src/views/my/peer/index.vue diff --git a/src/api/user.js b/src/api/user.js index dabe483..6b95340 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -75,6 +75,13 @@ export function myOauth () { }) } +export function myPeer (params) { + return request({ + url: '/user/myPeer', + params, + }) +} + export function groupUsers (data) { return request({ url: '/user/groupUsers', diff --git a/src/router/index.js b/src/router/index.js index c74697e..95f23d0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -58,9 +58,15 @@ export const asyncRoutes = [ { path: '/', name: 'MyInfo', - meta: { title: 'Info', icon: 'User' /*keepAlive: true*/ }, + meta: { title: 'Userinfo', icon: 'User' /*keepAlive: true*/ }, component: () => import('@/views/my/info.vue'), }, + { + path: 'peer', + name: 'MyPeer', + meta: { title: 'MyPeer', icon: 'Monitor' /*keepAlive: true*/ }, + component: () => import('@/views/my/peer/index.vue'), + }, { path: 'address_book_collection', name: 'MyAddressBookCollection', diff --git a/src/utils/i18n/zh_CN.json b/src/utils/i18n/zh_CN.json index d50946c..b46c8ec 100644 --- a/src/utils/i18n/zh_CN.json +++ b/src/utils/i18n/zh_CN.json @@ -460,5 +460,14 @@ }, "Email": { "One": "邮箱" + }, + "MyPeer": { + "One": "我的设备" + }, + "View": { + "One": "查看" + }, + "Information": { + "One": "信息" } } diff --git a/src/views/my/peer/index.vue b/src/views/my/peer/index.vue new file mode 100644 index 0000000..7f0ffa2 --- /dev/null +++ b/src/views/my/peer/index.vue @@ -0,0 +1,367 @@ + + + + +