Commit cd0d8cbd authored by Davve's avatar Davve

优化帖子搜索

parent 7a4486ea
...@@ -37,7 +37,6 @@ export default { ...@@ -37,7 +37,6 @@ export default {
}) })
const first = matched[0] const first = matched[0]
if (first && first.name.trim().toLocaleLowerCase() !== 'Hone'.toLocaleLowerCase()) { if (first && first.name.trim().toLocaleLowerCase() !== 'Hone'.toLocaleLowerCase()) {
matched = [{ path: '/home', meta: { title: '首页' }}].concat(matched)
} }
this.levelList = matched this.levelList = matched
}, },
......
...@@ -52,7 +52,6 @@ const permission = { ...@@ -52,7 +52,6 @@ const permission = {
let accessedRouters let accessedRouters
if (roles.includes('staff')) { if (roles.includes('staff')) {
accessedRouters = asyncRouterMap accessedRouters = asyncRouterMap
console.log(accessedRouters,'-----')
} else { } else {
accessedRouters = filterAsyncRouter(asyncRouterMap, roles) accessedRouters = filterAsyncRouter(asyncRouterMap, roles)
console.log(accessedRouters) console.log(accessedRouters)
......
...@@ -147,7 +147,6 @@ export default { ...@@ -147,7 +147,6 @@ export default {
this.listQuery.star_id = this.$route.query.star_id || '' this.listQuery.star_id = this.$route.query.star_id || ''
this.listQuery.user_id = this.$route.query.user_id || '' this.listQuery.user_id = this.$route.query.user_id || ''
fetchList(this.listQuery).then(response => { fetchList(this.listQuery).then(response => {
console.log(response.data.data.data)
this.list = response.data.data.data this.list = response.data.data.data
this.total = response.data.data.total this.total = response.data.data.total
this.listLoading = false this.listLoading = false
......
...@@ -140,8 +140,8 @@ export default { ...@@ -140,8 +140,8 @@ export default {
{'key': 0, 'display_name': '否'} {'key': 0, 'display_name': '否'}
], ],
ReBooleanTypeOptions: [ ReBooleanTypeOptions: [
{'key': 0, 'display_name': '是'}, {'key': '0', 'display_name': '是'},
{'key': 1, 'display_name': '否'} {'key': '1', 'display_name': '否'}
], ],
SearchTypeOptions:[ SearchTypeOptions:[
{'key': 'id', 'display_name': '帖子ID'}, {'key': 'id', 'display_name': '帖子ID'},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment