Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
sun
Commits
cd0d8cbd
Commit
cd0d8cbd
authored
6 years ago
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化帖子搜索
parent
7a4486ea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
5 deletions
+2
-5
index.vue
vu/src/components/Breadcrumb/index.vue
+0
-1
permission.js
vu/src/store/modules/permission.js
+0
-1
list.vue
vu/src/views/group/list.vue
+0
-1
list.vue
vu/src/views/topic/list.vue
+2
-2
No files found.
vu/src/components/Breadcrumb/index.vue
View file @
cd0d8cbd
...
@@ -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
},
},
...
...
This diff is collapsed.
Click to expand it.
vu/src/store/modules/permission.js
View file @
cd0d8cbd
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
vu/src/views/group/list.vue
View file @
cd0d8cbd
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
vu/src/views/topic/list.vue
View file @
cd0d8cbd
...
@@ -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'
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment