Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
7add0cb7
Commit
7add0cb7
authored
Sep 24, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改测试菜单
parent
6beabdb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
+20
-1
index.vue
src/views/apps/index.vue
+20
-1
No files found.
src/views/apps/index.vue
View file @
7add0cb7
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-09-24 1
0:54:12
* @LastEditTime: 2020-09-24 1
1:46:30
-->
<
template
>
<div
class=
"enterprise-wrap"
>
...
...
@@ -47,10 +47,29 @@ export default {
},
mounted
()
{
const
that
=
this
;
if
(
window
.
history
&&
window
.
history
.
pushState
)
{
history
.
pushState
(
null
,
null
,
document
.
URL
);
window
.
addEventListener
(
'popstate'
,
that
.
goBack
,
false
);
}
that
.
contentHeight
=
(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
64
+
'px'
;
},
destroyed
(){
const
that
=
this
;
window
.
removeEventListener
(
'popstate'
,
that
.
goBack
,
false
);
},
methods
:
{
/**
* @description: 回退
* @author: 无尘
*/
goBack
(){
const
that
=
this
;
if
(
that
.
$route
.
path
==
'/apps'
)
{
// replace替换原路由,作用是避免回退死循环
that
.
$router
.
replace
({
path
:
'/app-list'
});
}
},
/**
* @description: 处理简单数组-->父子级
* @param {Array} data
* @return {Array}
...
...
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