refine
This commit is contained in:
parent
f2d5567019
commit
d025ea74c9
|
@ -1,13 +1,10 @@
|
||||||
import defaultSettings from '@/settings'
|
import defaultSettings from '@/settings'
|
||||||
import i18n from '@/lang'
|
|
||||||
|
|
||||||
const title = defaultSettings.title || 'Vue Element Admin'
|
const title = defaultSettings.title || 'Vue Element Admin'
|
||||||
|
|
||||||
export default function getPageTitle(key) {
|
export default function getPageTitle(pageTitle) {
|
||||||
const hasKey = i18n.te(`route.${key}`)
|
if (pageTitle) {
|
||||||
if (hasKey) {
|
return `${pageTitle} - ${title}`
|
||||||
const pageName = i18n.t(`route.${key}`)
|
|
||||||
return `${pageName} - ${title}`
|
|
||||||
}
|
}
|
||||||
return `${title}`
|
return `${title}`
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="createPost-container">
|
<div class="createPost-container">
|
||||||
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
|
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
|
||||||
|
|
||||||
<sticky :z-index="10" :class-name="'sub-navbar '+postForm.status">
|
<sticky :z-index="10" :class-name="'sub-navbar '+postForm.status">
|
||||||
<CommentDropdown v-model="postForm.comment_disabled" />
|
<CommentDropdown v-model="postForm.comment_disabled" />
|
||||||
<PlatformDropdown v-model="postForm.platforms" />
|
<PlatformDropdown v-model="postForm.platforms" />
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<aside>
|
<aside>
|
||||||
{{ $t('example.warning') }}
|
Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support
|
||||||
|
caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching
|
||||||
|
effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all
|
||||||
|
pages directly. See details
|
||||||
<a
|
<a
|
||||||
href="https://panjiachen.github.io/vue-element-admin-site/guide/essentials/tags-view.html"
|
href="https://panjiachen.github.io/vue-element-admin-site/guide/essentials/tags-view.html"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>Document</a>
|
>Document</a>
|
||||||
</aside>
|
</aside>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue