From 3cae477f3e4bcfa4f208bdc8fcefe94fc6c45da4 Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Sat, 30 Aug 2025 22:28:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.FileAssistant/ui/.gitignore | 25 -- Yi.Ai.FileAssistant/ui/index.html | 21 -- Yi.Ai.FileAssistant/ui/main.js | 26 -- Yi.Ai.FileAssistant/ui/package.json | 15 - Yi.Ai.Vue3/package.json | 1 + Yi.Ai.Vue3/pnpm-lock.yaml | 11 + Yi.Ai.Vue3/src/api/user/index.ts | 4 +- .../components/QrCodeLogin/index.vue | 210 ++++++----- .../src/components/LoginDialog/index.vue | 3 +- .../components/UserManagement.vue | 346 +++++++++++++++++- .../components/Header/components/Avatar.vue | 3 +- Yi.Ai.Vue3/src/utils/user.ts | 7 + Yi.Ai.Vue3/types/components.d.ts | 2 + 13 files changed, 468 insertions(+), 206 deletions(-) delete mode 100644 Yi.Ai.FileAssistant/ui/.gitignore delete mode 100644 Yi.Ai.FileAssistant/ui/index.html delete mode 100644 Yi.Ai.FileAssistant/ui/main.js delete mode 100644 Yi.Ai.FileAssistant/ui/package.json diff --git a/Yi.Ai.FileAssistant/ui/.gitignore b/Yi.Ai.FileAssistant/ui/.gitignore deleted file mode 100644 index 49ef0bd1..00000000 --- a/Yi.Ai.FileAssistant/ui/.gitignore +++ /dev/null @@ -1,25 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -dist -dist-ssr -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -!.vscode/settings.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/Yi.Ai.FileAssistant/ui/index.html b/Yi.Ai.FileAssistant/ui/index.html deleted file mode 100644 index db2a2716..00000000 --- a/Yi.Ai.FileAssistant/ui/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - -
- - - -👋
- - - - diff --git a/Yi.Ai.FileAssistant/ui/main.js b/Yi.Ai.FileAssistant/ui/main.js deleted file mode 100644 index ad5d6735..00000000 --- a/Yi.Ai.FileAssistant/ui/main.js +++ /dev/null @@ -1,26 +0,0 @@ -const { app, BrowserWindow } = require('electron/main') - -const createWindow = () => { - const win = new BrowserWindow({ - width: 800, - height: 600 - }) - - win.loadFile('index.html') -} - -app.whenReady().then(() => { - createWindow() - - app.on('activate', () => { - if (BrowserWindow.getAllWindows().length === 0) { - createWindow() - } - }) -}) - -app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit() - } -}) diff --git a/Yi.Ai.FileAssistant/ui/package.json b/Yi.Ai.FileAssistant/ui/package.json deleted file mode 100644 index fefeb291..00000000 --- a/Yi.Ai.FileAssistant/ui/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "file-app", - "version": "1.0.0", - "main": "main.js", - "scripts": { - "start": "electron .", - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "description": "", - "devDependencies": { - "electron": "^23.1.3" - } -} diff --git a/Yi.Ai.Vue3/package.json b/Yi.Ai.Vue3/package.json index 8591f58a..1e2ddcdc 100644 --- a/Yi.Ai.Vue3/package.json +++ b/Yi.Ai.Vue3/package.json @@ -37,6 +37,7 @@ "@jsonlee_12138/enum": "^1.0.4", "@vueuse/core": "^13.5.0", "@vueuse/integrations": "^13.5.0", + "date-fns": "^2.30.0", "driver.js": "^1.3.6", "echarts": "^6.0.0", "element-plus": "^2.10.4", diff --git a/Yi.Ai.Vue3/pnpm-lock.yaml b/Yi.Ai.Vue3/pnpm-lock.yaml index 8d3ac5a4..3ae52c43 100644 --- a/Yi.Ai.Vue3/pnpm-lock.yaml +++ b/Yi.Ai.Vue3/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@vueuse/integrations': specifier: ^13.5.0 version: 13.5.0(async-validator@4.2.5)(nprogress@0.2.0)(qrcode@1.5.4)(vue@3.5.17(typescript@5.8.3)) + date-fns: + specifier: ^2.30.0 + version: 2.30.0 driver.js: specifier: ^1.3.6 version: 1.3.6 @@ -1774,6 +1777,10 @@ packages: resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==} engines: {node: '>= 0.4'} + date-fns@2.30.0: + resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} + engines: {node: '>=0.11'} + dayjs@1.11.13: resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} @@ -6659,6 +6666,10 @@ snapshots: es-errors: 1.3.0 is-data-view: 1.0.2 + date-fns@2.30.0: + dependencies: + '@babel/runtime': 7.27.6 + dayjs@1.11.13: {} de-indent@1.0.2: {} diff --git a/Yi.Ai.Vue3/src/api/user/index.ts b/Yi.Ai.Vue3/src/api/user/index.ts index 9024ef06..a29a3931 100644 --- a/Yi.Ai.Vue3/src/api/user/index.ts +++ b/Yi.Ai.Vue3/src/api/user/index.ts @@ -2,12 +2,12 @@ import { get, post } from '@/utils/request'; // 获取用户信息 export function getUserInfo() { - return get请在手机端确认登录
+
+ 请在手机端微信继续操作
+ 请关注微信服务号并授权
+
处理中... @@ -338,12 +286,76 @@ onMounted(() => {