页面调整

dev
truthhun 1 year ago
parent 4af79b9e96
commit a6ac0080ec

@ -1,6 +1,6 @@
<template>
<el-container class="layout-default">
<el-header v-if="$route.path !== '/search'">
<el-header v-if="$route.name !== 'search'">
<div>
<el-menu
:default-active="$route.path"
@ -246,14 +246,6 @@ export default {
...mapActions('category', ['getCategories']),
...mapActions('setting', ['getSettings']),
...mapActions('user', ['logout']),
onSearch() {
this.$router.push({
path: '/search',
query: {
wd: this.search.wd,
},
})
},
loopUpdate() {
clearTimeout(this.timeouter)
this.timeouter = setTimeout(() => {

@ -55,7 +55,6 @@
import { getArticle } from '~/api/article'
import { formatDate } from '~/utils/utils'
export default {
name: 'PageArticle',
components: {},
data() {
return {

@ -111,7 +111,6 @@ import DocumentList from '~/components/DocumentList.vue'
import { listDocument } from '~/api/document'
import { getIcon } from '~/utils/utils'
export default {
name: 'PageCategory',
components: { DocumentList },
data() {
return {

@ -250,7 +250,6 @@ import { formatDatetime, formatBytes, getIcon } from '~/utils/utils'
import FormComment from '~/components/FormComment.vue'
import CommentList from '~/components/CommentList.vue'
export default {
name: 'PageDocument',
components: { DocumentSimpleList, FormComment, CommentList },
data() {
return {

@ -6,7 +6,6 @@
<script>
export default {
name: 'IndexPage',
data() {
return {}
},

@ -284,7 +284,6 @@ import { listBanner } from '~/api/banner'
import { listDocument, listDocumentForHome } from '~/api/document'
import { getSignedToday, signToday } from '~/api/user'
export default {
name: 'IndexPage',
components: { UserAvatar },
data() {
return {
@ -334,9 +333,8 @@ export default {
},
onSearch() {
if (this.search.wd) {
const wd = this.search.wd
this.search.wd = ''
this.$router.push({ path: '/search', query: { wd } })
location.href = '/search?wd=' + this.search.wd
return
}
},
async getSignedToday() {

@ -23,7 +23,6 @@
<script>
import { mapGetters } from 'vuex'
export default {
name: 'RegisterPage',
//
middleware: ['checklogin'],
data() {

@ -21,7 +21,9 @@
class="el-link el-link--default"
>会员中心</nuxt-link
>
<nuxt-link v-else to="/login">登录账户</nuxt-link>
<nuxt-link class="el-link el-link--default" v-else to="/login"
>登录账户</nuxt-link
>
</span>
</el-col>
</el-row>
@ -195,7 +197,6 @@ import { mapGetters } from 'vuex'
import { searchDocument } from '~/api/document'
import { formatBytes, getIcon } from '~/utils/utils'
export default {
name: 'IndexPage',
data() {
return {
loading: false,
@ -204,7 +205,7 @@ export default {
page: 1,
size: 10,
ext: 'all', //
sort: 'sort', //
sort: 'default', //
},
searchExts: [
{ label: '不限', value: 'all' },

@ -245,7 +245,6 @@ import { formatBytes } from '~/utils/utils'
import { createDocument } from '~/api/document'
import { canIUploadDocument } from '~/api/user'
export default {
name: 'PageUpload',
data() {
return {
canIUploadDocument: false,

@ -64,7 +64,6 @@
<script>
import { getUser } from '~/api/user'
export default {
name: 'PageUser',
data() {
return {
user: {

Loading…
Cancel
Save