Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
吴迪
gs1
Commits
bb5e2c13
Commit
bb5e2c13
authored
Dec 15, 2021
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全文搜索
parent
a1f76e47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
sousuo-list.vue
src/views/Home/comps/sousuo-list.vue
+25
-2
No files found.
src/views/Home/comps/sousuo-list.vue
View file @
bb5e2c13
...
...
@@ -24,12 +24,35 @@
<
script
>
export
default
{
props
:
[
'list'
],
data
()
{
return
{
}
},
methods
:
{
handelMsg
(
id
)
{
this
.
InfoFn
(
id
)
},
async
InfoFn
(
id
)
{
const
params
=
{
id
:
id
,
};
const
listRes
=
await
this
.
$api
.
news
.
newsInfo
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
let
directpath
=
data
.
directpath
if
(
directpath
&&
directpath
!==
''
&&
directpath
.
length
>
0
){
window
.
open
(
directpath
,
'_blank'
);
}
else
{
this
.
$router
.
push
({
path
:
'/News/Msg'
,
query
:{
id
:
id
}
path
:
`/news/msg?id=
${
id
}
`
,
});
}
}
},
changeText
(
val
){
val
=
(
val
||
''
).
replace
(
/<
[^
>
]
+>/g
,
""
).
replace
(
/<br
\/
>/g
,
'
\
n'
).
replace
(
/ /g
,
''
);
...
...
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