a1300399510@qq.com 提交于 2023/03/29 -16:20:02
This commit is contained in:
parent
64380a6e8d
commit
d5cef721d4
@ -11,7 +11,7 @@
|
||||
|
||||
<div class="right flexacenter">
|
||||
<!-- <slot name="search"></slot> -->
|
||||
<search-box slot="search" :issearch="true"></search-box>
|
||||
<search-box slot="search" :issearch="issearch"></search-box>
|
||||
|
||||
<div class="head-more flexcenter" @click="headMorePopState = !headMorePopState">
|
||||
<div class="red-dot" v-if="false"></div>
|
||||
|
@ -12,11 +12,12 @@ VueRouter.prototype.push = function push(to) {
|
||||
import getPageTitle from "@/utils/title-config";
|
||||
|
||||
|
||||
const Index = () => import('views/index')
|
||||
const Recommend = () => import('views/recommend/Recommend')
|
||||
const Collect = () => import('views/collect/Collect')
|
||||
const AllSections = () => import('views/allSections/AllSections')
|
||||
const SearchResult = () => import('views/searchResult/SearchResult')
|
||||
const Index = () => import('views/index/index')
|
||||
const Recommend = () => import('views/index/recommend/Recommend')
|
||||
const Collect = () => import('views/index/collect/Collect')
|
||||
const AllSections = () => import('views/index/allSections/AllSections')
|
||||
const search = () => import('views/search/search')
|
||||
const SearchResult = () => import('views/search/searchResult/SearchResult')
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@ -50,16 +51,24 @@ const routes = [
|
||||
title: "全部版块"
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
}, {
|
||||
path: '/searchResult', // 首页
|
||||
name: 'search',
|
||||
redirect: "/searchResult",
|
||||
component: search,
|
||||
children: [
|
||||
{
|
||||
path: '/searchResult',
|
||||
name: 'SearchResult',
|
||||
name: 'Recommend',
|
||||
component: SearchResult,
|
||||
meta: {
|
||||
title: "搜索帖子"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HeaderNav from "../components/HeaderNav";
|
||||
import HeaderNav from "@/components/HeaderNav";
|
||||
export default {
|
||||
name: "Index",
|
||||
data() {
|
||||
|
35
src/views/search/search.vue
Executable file
35
src/views/search/search.vue
Executable file
@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div>
|
||||
<header-nav :issearch="false" :needgetuser="true">
|
||||
<template slot="header-title">搜索帖子</template>
|
||||
</header-nav>
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HeaderNav from "@/components/HeaderNav";
|
||||
|
||||
export default {
|
||||
name: 'GterforumwebSearch',
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
},
|
||||
components: {
|
||||
HeaderNav,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
23
src/views/search/searchResult/SearchResult.vue
Executable file
23
src/views/search/searchResult/SearchResult.vue
Executable file
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "SearchResult",
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
</style>
|
@ -1,19 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
改好复工后复工后
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
name: "SearchResult",
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user