From 07ac978feff9ebcd47dbb24cdc2e00414b10cd8e Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Tue, 13 Aug 2024 19:38:26 +0800 Subject: [PATCH] 1`212 --- src/api/auth/index.js | 1 - src/router/index.js | 2 +- src/store/auth/index.js | 5 +++-- src/views/vote/index.vue | 19 +++++++++---------- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/api/auth/index.js b/src/api/auth/index.js index ae16ea2..1846559 100644 --- a/src/api/auth/index.js +++ b/src/api/auth/index.js @@ -38,7 +38,6 @@ export const competitionWorks = (data) => { } export const workInfo = (data) => { return request({ - isFormData:true, url: '/api/children/competition/get/work/info', method: 'POST', data, diff --git a/src/router/index.js b/src/router/index.js index c9c514b..0dbfc06 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,6 +54,6 @@ router.beforeEach((to, from, next) => { if (to.meta?.title) { document.title = to.meta.title; // 设置页面标题 } - next(); // 继续导航 + next() }); export default router; diff --git a/src/store/auth/index.js b/src/store/auth/index.js index b603fc8..098c662 100644 --- a/src/store/auth/index.js +++ b/src/store/auth/index.js @@ -7,7 +7,7 @@ import { showImagePreview } from 'vant'; import useImgModalPopup from "@/components/imgModal/imgModal.js"; export const useAuth=createGlobalState(()=>{ - const router = useRouter(); + const router = useRouter() const token = useStorage('token', '', localStorage) const workUid = useStorage('workUid', '', localStorage) const telNum =useStorage('telNum', '', localStorage) @@ -20,7 +20,7 @@ export const useAuth=createGlobalState(()=>{ }) const getWorkInfo=async ()=>{ const res=await workInfo({workUid:workUid.value}) - if (res.static===0){ + if (res.status===0){ workData.value=res.data } @@ -198,6 +198,7 @@ export const useAuth=createGlobalState(()=>{ })*/ } return { + workData, workUid, getWorkInfo, viewDetails, diff --git a/src/views/vote/index.vue b/src/views/vote/index.vue index fe39faa..4509103 100644 --- a/src/views/vote/index.vue +++ b/src/views/vote/index.vue @@ -1,21 +1,20 @@