Bläddra i källkod

修改退出登录

zs 5 månader sedan
förälder
incheckning
9ff4f848d2
2 ändrade filer med 2 tillägg och 3 borttagningar
  1. 1 2
      src/layout/index.vue
  2. 1 1
      src/views/detail/matchDetail.vue

+ 1 - 2
src/layout/index.vue

@@ -98,8 +98,7 @@ const toActive = async (item) => {
 // 退出登录
 const toOut = () => {
   userStore.logOut()
-  // router.push({ path: '/login', query: { status: '1' } })
-  location.replace(`${import.meta.VITE_BASE_URL}/login?status=1`)
+  location.replace(`/login?status=1`)
 }
 // 返回首页
 const toHome = () => {

+ 1 - 1
src/views/detail/matchDetail.vue

@@ -123,7 +123,7 @@
             <div class="button" v-if="info.match_status == '1'" @click="toSign">活动报名</div>
           </div>
         </div>
-        <div class="info_3" v-if="info.match_status == '3' && signList.length > 0">
+        <div class="info_3" v-if="info.form == '3' && info.match_status == '3' && signList.length > 0">
           <div class="title">参演方信息</div>
           <div class="list" v-for="i in signList" :key="i.id">
             <el-card class="box-card">