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'); },