fix layout
This commit is contained in:
@@ -1,31 +1,35 @@
|
||||
<template>
|
||||
<t-navbar
|
||||
fixed
|
||||
:z-index="20"
|
||||
:title="routeNavBarTitle"
|
||||
left-arrow
|
||||
@left-click="$router.back()"
|
||||
/>
|
||||
<div class="agreement-page">
|
||||
<template v-if="article">
|
||||
<header class="header" v-entrance-transition>
|
||||
<h3 v-text="article.title || '协议'" />
|
||||
<markdown-view
|
||||
v-if="article.description"
|
||||
class="description"
|
||||
:content="article.description"
|
||||
/>
|
||||
</header>
|
||||
<article-view
|
||||
:article="article"
|
||||
empty-text="暂无协议正文"
|
||||
:resolve-attachment-url="resolveAttachmentUrl"
|
||||
/>
|
||||
</template>
|
||||
<t-empty
|
||||
v-else
|
||||
:description="isLoading ? '正在加载协议' : '协议不存在'"
|
||||
<div class="page-layout navbar">
|
||||
<t-navbar
|
||||
fixed
|
||||
:z-index="20"
|
||||
:title="routeNavBarTitle"
|
||||
left-arrow
|
||||
@left-click="$router.back()"
|
||||
/>
|
||||
<main class="page-content scroll column">
|
||||
<div class="agreement-page">
|
||||
<template v-if="article">
|
||||
<header class="header" v-entrance-transition>
|
||||
<h3 v-text="article.title || '协议'" />
|
||||
<markdown-view
|
||||
v-if="article.description"
|
||||
class="description"
|
||||
:content="article.description"
|
||||
/>
|
||||
</header>
|
||||
<article-view
|
||||
:article="article"
|
||||
empty-text="暂无协议正文"
|
||||
:resolve-attachment-url="resolveAttachmentUrl"
|
||||
/>
|
||||
</template>
|
||||
<t-empty
|
||||
v-else
|
||||
:description="isLoading ? '正在加载协议' : '协议不存在'"
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -96,7 +100,7 @@ watch(() => route.params.id, async () => {
|
||||
|
||||
<style scoped lang="less">
|
||||
.agreement-page {
|
||||
padding: var(--app-nav-height) 0 1rem 0;
|
||||
padding: 0 0 1rem 0;
|
||||
|
||||
.header {
|
||||
padding: .5rem 1rem;
|
||||
|
||||
Reference in New Issue
Block a user