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
ad2fe0f7
Commit
ad2fe0f7
authored
Sep 21, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改Vue加载
parent
2ecd589b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
index.html
dist/index.html
+0
-0
app.00e778c1.js
dist/js/app.00e778c1.js
+0
-0
main.js
src/main.js
+1
-1
permission.js
src/utils/permission.js
+3
-3
No files found.
dist/index.html
View file @
ad2fe0f7
This diff is collapsed.
Click to expand it.
dist/js/app.
6b6d69dd
.js
→
dist/js/app.
00e778c1
.js
View file @
ad2fe0f7
This diff is collapsed.
Click to expand it.
src/main.js
View file @
ad2fe0f7
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-09-21 15:
12:19
* @LastEditTime: 2020-09-21 15:
37:51
*/
import
'babel-polyfill'
;
import
promise
from
'es6-promise'
;
...
...
src/utils/permission.js
View file @
ad2fe0f7
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-31 11:41:34
* @LastEditors: 无尘
* @LastEditTime: 2020-09-21 1
1:45:37
* @LastEditTime: 2020-09-21 1
5:42:03
*/
import
{
request
}
from
'./request.js'
;
import
axios
from
'axios'
;
...
...
@@ -93,7 +93,7 @@ function itemPerm(itemPermCode) {
let
permission
=
function
(
config
)
{
const
{
projectPath
,
whiteRoute
,
router
,
routes
,
createApp
}
=
config
;
window
.
onload
=
async
function
()
{
window
.
addEventListener
(
'load'
,
async
function
()
{
// 获取菜单数据
// 获取权限数据
const
path
=
window
.
location
.
href
;
...
...
@@ -115,7 +115,7 @@ let permission = function(config) {
router
.
beforeEach
(
intercept
);
// 创建vue实例,渲染页面
if
(
typeof
createApp
==
'function'
)
createApp
();
};
}
)
;
};
export
{
permission
,
itemPerm
};
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