From 7b4b977efe4de9779f969876292105784f451806 Mon Sep 17 00:00:00 2001 From: hezhengao <1747627779@qq.com> Date: Thu, 23 May 2024 17:34:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/index.html | 16 ++++++++++++++-- src/views/login.vue | 6 +++++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4d79a58..4e014c1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "Survey", + "name": "zh-qrcod", "version": "2.0.0", "private": true, "scripts": { diff --git a/public/index.html b/public/index.html index c7be11e..e61977c 100644 --- a/public/index.html +++ b/public/index.html @@ -12,7 +12,7 @@ - <!-- <%= htmlWebpackPlugin.options.title %> --> + 问卷调查 @@ -25,4 +25,16 @@ - \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/login.vue b/src/views/login.vue index e192136..fcb7c93 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -58,11 +58,15 @@ export default { methods: { TimuUrl() { var url = window.location.href; - console.log(url,'dadad'); + var urlnew = new URL(url) this.urlid = urlnew.searchParams.get('id') this.urldeptid=urlnew.searchParams.get('deptId') this.urldeptname=urlnew.searchParams.get('deptName') + this.urldescription=urlnew.searchParams.get('description') + localStorage.setItem('description',this.urldescription) + + console.log(this.urlid, 'yyuu'); console.log(this.urldeptid, 'adaa'); },