Explorar o código

fix: 修改需求

bill %!s(int64=2) %!d(string=hai) anos
pai
achega
bb99ccf800
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/layout/header.vue
  2. 1 1
      src/views/room/list.vue

+ 1 - 1
src/layout/header.vue

@@ -44,8 +44,8 @@ const menus = [
   { label: '退出', key: 'logout' }
 ]
 const handlerMenuClick: MenuProps['onClick'] = async e => {
-  await postLogout()
   if (e.key === 'logout') {
+    await postLogout()
     location.replace(mainURL)
   } else {
     location.href = `${mainURL}/#/information`

+ 1 - 1
src/views/room/list.vue

@@ -17,7 +17,7 @@
     :keyword="keyword"
     name="作品"
   >
-    <template #undata>
+    <template v-if="!keyword" #undata>
       <a-button type="primary" shape="round" size="middle" @click="editRoom()">
         创建房间
       </a-button>