From 0bdab5913402c362683f92f6cceac95e53f57787 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Tue, 9 Jan 2024 23:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=87token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/auth.js | 2 +- src/views/components/newEvent/index.vue | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/utils/auth.js b/src/utils/auth.js index c42896f..e5cdf20 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -4,7 +4,7 @@ const TokenKey = 'Admin-Token' const AccessToken = 'X-Access-Token' - +Cookies.set(AccessToken,'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDMwOTkxMTYsInVzZXJuYW1lIjoi6LW15YWtIn0.GwJMwZTBCtjTbG0K-cTV72OJXBxI4VsrSgeBaCCjQM4') export function getAccessToken() { return Cookies.get(AccessToken) } diff --git a/src/views/components/newEvent/index.vue b/src/views/components/newEvent/index.vue index 78f19de..073ad83 100644 --- a/src/views/components/newEvent/index.vue +++ b/src/views/components/newEvent/index.vue @@ -1460,15 +1460,14 @@ export default { this.formInline.reportEventObj.audioUrl = this.baseUrl + this.formInline.reportEventObj.audioUrl; this.formInline.reportEventObj.meshOccurs = this.formInline.reportEventObj.meshOccurs.join(','); console.log(this.formInline); + eventSaveData(this.formInfo,{formData:this.formInline}).then(res=>{ + console.log(res,'===================res'); + if(res.code == 200 && res.success == true) { + this.$refs.dialog5.Close(); + } + }) } }) - // eventSaveData(this.formInfo,{formData:this.formInline}).then(res=>{ - // console.log(res,'===================res'); - // if(res.code == 200 && res.success == true) { - // this.$refs.dialog5.Close(); - // } - // }) - }, }, }