Commit cd0d8cbd authored by Davve's avatar Davve

优化帖子搜索

parent 7a4486ea
......@@ -37,7 +37,6 @@ export default {
})
const first = matched[0]
if (first && first.name.trim().toLocaleLowerCase() !== 'Hone'.toLocaleLowerCase()) {
matched = [{ path: '/home', meta: { title: '首页' }}].concat(matched)
}
this.levelList = matched
},
......
......@@ -52,7 +52,6 @@ const permission = {
let accessedRouters
if (roles.includes('staff')) {
accessedRouters = asyncRouterMap
console.log(accessedRouters,'-----')
} else {
accessedRouters = filterAsyncRouter(asyncRouterMap, roles)
console.log(accessedRouters)
......
......@@ -147,7 +147,6 @@ export default {
this.listQuery.star_id = this.$route.query.star_id || ''
this.listQuery.user_id = this.$route.query.user_id || ''
fetchList(this.listQuery).then(response => {
console.log(response.data.data.data)
this.list = response.data.data.data
this.total = response.data.data.total
this.listLoading = false
......
......@@ -140,8 +140,8 @@ export default {
{'key': 0, 'display_name': '否'}
],
ReBooleanTypeOptions: [
{'key': 0, 'display_name': '是'},
{'key': 1, 'display_name': '否'}
{'key': '0', 'display_name': '是'},
{'key': '1', 'display_name': '否'}
],
SearchTypeOptions:[
{'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