Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
729a78f4
Commit
729a78f4
authored
Dec 18, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化站点跳转信息展示
parent
5532badb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
32 deletions
+2
-32
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
...al-manager-ui/admin/src/views/siteArrange/siteArrange.vue
+2
-32
No files found.
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
View file @
729a78f4
...
...
@@ -206,15 +206,14 @@ export default {
description
:
(
<
div
>
<
div
class
=
"
notif-name
"
>
完整链接:
<
/div
>
<
div
id
=
"
FullUrl
"
>
{
redirectUrl
+
params
}
<
/div
>
<
div
>
{
redirectUrl
+
params
}
<
/div
>
<
div
class
=
"
notif-name
"
>
链接参数:
<
/div
>
<
div
id
=
"
Params
"
>
{
params
}
<
/div
>
<
div
>
{
params
}
<
/div
>
<
/div
>
),
style
:
{
"
word-break
"
:
"
break-all
"
,
},
onClick
:
_this
.
copyContent
,
icon
:
<
a
-
icon
type
=
"
smile
"
style
=
"
color: #108ee9
"
/>
,
});
}
...
...
@@ -276,35 +275,6 @@ export default {
return
false
;
},
// 复制链接内容
copyContent
(
dom
)
{
let
target
=
dom
.
target
.
id
;
if
(
target
===
"
FullUrl
"
)
{
this
.
copy
(
"
FullUrl
"
);
}
else
if
(
target
===
"
Params
"
)
{
this
.
copy
(
"
Params
"
);
}
},
copy
(
element
)
{
let
_this
=
this
;
let
dom
=
document
.
getElementById
(
element
);
let
textToCopy
=
dom
.
innerText
;
// let range = document.createRange();
// range.selectNodeContents(dom);
// let selection = window.getSelection();
// selection.removeAllRanges();
// selection.addRange(range);
navigator
.
clipboard
.
writeText
(
textToCopy
)
.
then
(
function
()
{
_this
.
$message
.
success
(
"
复制成功
"
);
})
.
catch
(
function
(
err
)
{
_this
.
$message
.
error
(
"
复制失败
"
);
});
},
// 获取重定向地址
getFinalRedirect
(
url
)
{
return
fetch
(
url
,
{
method
:
"
GET
"
,
redirect
:
"
follow
"
})
...
...
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