Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e43c63f9
authored
Aug 25, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改灵活用工页面中的JSBridge
parent
161c5619
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
src/views/FlexEmployee.vue
src/views/FlexEmployee.vue
View file @
e43c63f9
...
@@ -179,11 +179,24 @@ export default class FlexEmployee extends Vue {
...
@@ -179,11 +179,24 @@ export default class FlexEmployee extends Vue {
}
}
}
}
//禁止浏览器返回操作
private
disableBack
()
{
console
.
log
(
"disableBack"
);
//@ts-ignore
history
.
pushState
(
null
,
null
,
location
.
href
);
window
.
addEventListener
(
"popstate"
,
function
()
{
//@ts-ignore
history
.
pushState
(
null
,
null
,
location
.
href
);
});
}
mounted
()
{
mounted
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
callJSBridage
();
this
.
callJSBridage
();
},
500
);
},
500
);
this
.
disableBack
();
this
.
name
=
localStorage
.
getItem
(
"name"
)
as
string
;
this
.
name
=
localStorage
.
getItem
(
"name"
)
as
string
;
this
.
birthday
=
localStorage
.
getItem
(
"birthday"
)
as
string
;
this
.
birthday
=
localStorage
.
getItem
(
"birthday"
)
as
string
;
const
idNo
=
window
.
atob
(
decodeURI
(
String
(
this
.
$route
.
query
.
id_no
)));
const
idNo
=
window
.
atob
(
decodeURI
(
String
(
this
.
$route
.
query
.
id_no
)));
...
...
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