diff --git a/package-lock.json b/package-lock.json index 1019f2f..7d61c22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "axios": "^1.7.7", "element-plus": "^2.8.6", "font-awesome": "^4.7.0", + "html5-qrcode": "^2.3.8", "js-beautify": "^1.15.1", "nprogress": "^0.2.0", "path": "^0.12.7", @@ -3895,6 +3896,11 @@ "resolved": "https://registry.npmmirror.com/hookable/-/hookable-5.5.3.tgz", "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==" }, + "node_modules/html5-qrcode": { + "version": "2.3.8", + "resolved": "https://registry.npmmirror.com/html5-qrcode/-/html5-qrcode-2.3.8.tgz", + "integrity": "sha512-jsr4vafJhwoLVEDW3n1KvPnCCXWaQfRng0/EEYk1vNcQGcG/htAdhJX0be8YyqMoSz7+hZvOZSTAepsabiuhiQ==" + }, "node_modules/htmlparser2": { "version": "3.10.1", "resolved": "https://registry.npmmirror.com/htmlparser2/-/htmlparser2-3.10.1.tgz", diff --git a/package.json b/package.json index f1821b0..bd95f16 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "axios": "^1.7.7", "element-plus": "^2.8.6", "font-awesome": "^4.7.0", + "html5-qrcode": "^2.3.8", "js-beautify": "^1.15.1", "nprogress": "^0.2.0", "path": "^0.12.7", diff --git a/src/utils/router/index.ts b/src/utils/router/index.ts index 6883a97..85ba1a1 100644 --- a/src/utils/router/index.ts +++ b/src/utils/router/index.ts @@ -20,6 +20,11 @@ export const staticRouting : RouteRecordRaw[] = [ component: () => import('@/views/home/index.vue'), meta: { hidden: true }, }, + { + path: '/scanQrCode', + component: () => import('@/views/home/scanQrCode.vue'), + meta: { hidden: true }, + }, { path: '/login', component: () => import('@/views/login/index.vue'), diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 438ec7d..61e4d7f 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -280,7 +280,7 @@ const openNews = (val:any,name:string) => { diff --git a/src/views/home/scanQrCode.vue b/src/views/home/scanQrCode.vue new file mode 100644 index 0000000..bdb8696 --- /dev/null +++ b/src/views/home/scanQrCode.vue @@ -0,0 +1,165 @@ + + ​ + + + + ​ \ No newline at end of file