From c897d0c32e20bc120358d06e4ad65909157551e1 Mon Sep 17 00:00:00 2001 From: lzyyj Date: Fri, 25 Apr 2025 11:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E8=AE=BF=E5=AE=A2=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84=E5=8D=95?= =?UTF-8?q?=E7=8B=AC=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=B8=8D=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=B8=8A=E4=BC=A0=E5=88=B0=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 2 +- src/views/apply.vue | 1 - src/views/home.vue | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index e75eed3..be3fb24 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -4,7 +4,7 @@ import { useStore } from "vuex"; import { Toast, Dialog } from "vant"; // import { getItem, setItem, removeItem, dalert } from '@/com/index' const errorCode = { - 401: "登录状态已过期,即将返回首页重新登录。", + 401: "登录已过期,即将返回首页重新登录。", 403: "当前操作没有权限", 404: "访问资源不存在", default: "系统未知错误,请反馈给管理员", diff --git a/src/views/apply.vue b/src/views/apply.vue index 280a0d8..37456e4 100644 --- a/src/views/apply.vue +++ b/src/views/apply.vue @@ -244,7 +244,6 @@ import { uploadGuestFaceApi } from '@/api/upload' formData.append('file', res.file) formData.append('userId', form.phone) formData.append('name', form.name) - formData.append('userType', 'visitor') Toast.loading({ duration: 0, forbidClick: true, message: '上传中', }); uploadGuestFaceApi(formData).then(res =>{ Toast.success(res.msg); diff --git a/src/views/home.vue b/src/views/home.vue index 954fa13..4317bf6 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -160,6 +160,7 @@ getToken(code).then(data =>{ localStorage.setItem('user', data.data) localStorage.setItem('token', data.data.authorization) + alert("登录成功:"+data.data.authorization) Toast.clear() Toast.success('登录成功') deptList()