Browse Source

用户菜单缓存bug

lrf 8 months ago
parent
commit
8847c2306c
3 changed files with 11 additions and 2 deletions
  1. 2 1
      src/layout/index.vue
  2. 1 1
      src/router/index.js
  3. 8 0
      src/views/detail/serviceDetail.vue

+ 2 - 1
src/layout/index.vue

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

+ 1 - 1
src/router/index.js

@@ -340,7 +340,7 @@ router.beforeEach(async (to, from, next) => {
       next()
       return
     }
-    next('/login')
+    next('/login?status=1')
   }
 })
 router.afterEach(() => {

+ 8 - 0
src/views/detail/serviceDetail.vue

@@ -32,6 +32,14 @@
                 <span>登记时间:</span>
                 {{ info.time || '暂无运营主体' }}
               </el-col>
+              <el-col :span="24" class="other_1">
+                <span>联系人:</span>
+                {{ info.contacts || '暂无联系人' }}
+              </el-col>
+              <el-col :span="24" class="other_1">
+                <span>联系电话:</span>
+                {{ info.phone || '暂无联系电话' }}
+              </el-col>
             </div>
           </div>
           <div class="center">