Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
be0697f1
authored
Sep 19, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix首页计算资源跳转
parent
6a8d857c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
src/views/index.vue
+14
-1
No files found.
src/views/index.vue
View file @
be0697f1
...
...
@@ -30,7 +30,9 @@
<p
class=
"info"
>
{{
i
.
information
}}
</p>
<div
class=
"btn-box"
>
<button
aria-disabled=
"false"
type=
"button"
class=
"el-button el-button--default is-plain"
>
class=
"el-button el-button--default is-plain"
@
click=
"goToDetail(i)"
>
<span
class=
""
>
了解详情
</span>
</button>
</div>
...
...
@@ -217,6 +219,17 @@ const infoList = ref([])
const
infoBottomList
=
ref
([])
const
router
=
useRouter
()
// 跳转处理函数
const
goToDetail
=
(
item
)
=>
{
if
(
!
item
.
url
)
{
console
.
warn
(
'当前资源没有跳转链接'
,
item
);
return
;
}
window
.
open
(
item
.
url
,
'_blank'
);
}
;
function
updateHeight
()
{
// 根据窗口宽度计算高度
const
width
=
window
.
innerWidth
;
...
...
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