Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
844f1e22
Commit
844f1e22
authored
Apr 07, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
外部url菜单,内部打开是,也支持通过 ${token}方式传递当前登录TOKEN
parent
cf5fde80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
ant-design-vue-jeecg/src/components/layouts/IframePageView.vue
+9
-7
No files found.
ant-design-vue-jeecg/src/components/layouts/IframePageView.vue
View file @
844f1e22
...
...
@@ -38,16 +38,18 @@
//url = "http://www.baidu.com"
console
.
log
(
"------url------"
+
url
)
if
(
url
!==
null
&&
url
!==
undefined
)
{
this
.
url
=
url
;
//-----------------------------------------------------------------------------------------
//url支持通过 ${token}方式传递当前登录TOKEN
let
tokenStr
=
"${token}"
;
if
(
url
.
indexOf
(
tokenStr
)
!=-
1
)
{
let
token
=
Vue
.
ls
.
get
(
ACCESS_TOKEN
);
this
.
url
=
url
.
replace
(
tokenStr
,
token
);
}
//-----------------------------------------------------------------------------------------
/*update_begin author:wuxianquan date:20190908 for:判断打开方式,新窗口打开时this.$route.meta.internalOrExternal==true */
if
(
this
.
$route
.
meta
.
internalOrExternal
!=
undefined
&&
this
.
$route
.
meta
.
internalOrExternal
==
true
){
this
.
closeCurrent
();
//外部url加入token
let
tokenStr
=
"${token}"
;
if
(
url
.
indexOf
(
tokenStr
)
!=-
1
){
let
token
=
Vue
.
ls
.
get
(
ACCESS_TOKEN
);
this
.
url
=
url
.
replace
(
tokenStr
,
token
);
}
window
.
open
(
this
.
url
);
}
/*update_end author:wuxianquan date:20190908 for:判断打开方式,新窗口打开时this.$route.meta.internalOrExternal==true */
...
...
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