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
5532badb
Commit
5532badb
authored
Dec 18, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化admin获取站点跳转信息
parent
fe722845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
...al-manager-ui/admin/src/views/siteArrange/siteArrange.vue
+7
-1
No files found.
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
View file @
5532badb
...
@@ -187,12 +187,18 @@ export default {
...
@@ -187,12 +187,18 @@ export default {
if
(
this
.
userData
.
admin
||
this
.
userData
.
id
==
1
)
{
if
(
this
.
userData
.
admin
||
this
.
userData
.
id
==
1
)
{
event
.
preventDefault
();
event
.
preventDefault
();
let
redirectUrl
=
""
;
let
redirectUrl
=
""
;
let
hash
=
""
;
let
redirect
=
await
this
.
getFinalRedirect
(
modelUrl
);
let
redirect
=
await
this
.
getFinalRedirect
(
modelUrl
);
if
(
!
modelUrl
.
includes
(
"
http
"
))
{
let
index
=
modelUrl
.
indexOf
(
"
/
"
);
hash
=
modelUrl
.
slice
(
index
+
1
);
}
if
(
redirect
)
{
if
(
redirect
)
{
redirectUrl
=
redirect
;
redirectUrl
=
redirect
+
hash
;
}
else
{
}
else
{
redirectUrl
=
modelUrl
;
redirectUrl
=
modelUrl
;
}
}
this
.
$notification
.
open
({
this
.
$notification
.
open
({
message
:
"
跳转链接
"
,
message
:
"
跳转链接
"
,
key
:
1
,
key
:
1
,
...
...
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