Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
0b396786
Commit
0b396786
authored
Nov 06, 2020
by
luo ying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页
parent
af778faa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
29 deletions
+38
-29
index.vue
layouts/basic-layout/index.vue
+1
-0
index.vue
pages/account/login/index.vue
+3
-1
index.vue
pages/welcome/index.vue
+0
-0
dashboard.js
router/modules/dashboard.js
+12
-13
routes.js
router/routes.js
+22
-15
No files found.
layouts/basic-layout/index.vue
View file @
0b396786
...
...
@@ -239,6 +239,7 @@
},
handleReload
()
{
// 针对缓存的页面也生效
console
.
log
(
'针对缓存的页面也生效'
,
this
.
$route
.
name
)
const
isCurrentPageCache
=
this
.
keepAlive
.
indexOf
(
this
.
$route
.
name
)
>
-
1
;
const
pageName
=
this
.
$route
.
name
;
if
(
isCurrentPageCache
)
{
...
...
pages/account/login/index.vue
View file @
0b396786
...
...
@@ -110,6 +110,7 @@ export default {
Id
:
id
};
this
.
$http
.
sysUser
.
getuserinfo
(
parma
).
then
(
res
=>
{
console
.
log
(
'登录页'
,
res
.
result
)
if
(
res
.
result
)
{
if
(
res
.
result
.
avatarUrl
&&
...
...
@@ -128,7 +129,8 @@ export default {
});
// setUserInfo
this
.
$store
.
commit
(
"setUserInfo"
,
info
);
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
"/"
);
this
.
$router
.
replace
(
'/welcome'
)
// this.$router.replace(this.$route.query.redirect || "/");
}
else
{
this
.
$Message
.
error
(
"用户信息22查询失败!"
);
}
...
...
pages/
home/router
.vue
→
pages/
welcome/index
.vue
View file @
0b396786
File moved
router/modules/dashboard.js
View file @
0b396786
...
...
@@ -14,16 +14,15 @@ export default {
},
meta
,
component
:
BasicLayout
,
children
:
[
{
path
:
'console'
,
name
:
`
${
pre
}
console`
,
meta
:
{
...
meta
,
title
:
'主控台'
,
closable
:
false
},
component
:
()
=>
import
(
'@/pages/dashboard/console'
)
}
]
};
children
:
[{
path
:
'console'
,
name
:
`
${
pre
}
console`
,
meta
:
{
...
meta
,
title
:
'主控台'
,
closable
:
false
},
component
:
()
=>
import
(
'@/pages/dashboard/console'
)
}]
};
\ No newline at end of file
router/routes.js
View file @
0b396786
...
...
@@ -5,8 +5,7 @@ import BasicLayout from '@/layouts/basic-layout';
* 在主框架内显示22222222222222
*/
const
frameIn
=
[
{
const
frameIn
=
[{
path
:
'/'
,
// redirect: {
// name: ''
...
...
@@ -14,6 +13,7 @@ const frameIn = [
// },
component
:
BasicLayout
,
children
:
[
{
path
:
'index'
,
name
:
'index'
,
...
...
@@ -32,7 +32,8 @@ const frameIn = [
title
:
'前端日志'
,
auth
:
true
},
component
:
()
=>
import
(
'@/pages/system/log'
)
component
:
()
=>
import
(
'@/pages/system/log'
)
},
{
path
:
'/hello'
,
...
...
@@ -41,7 +42,8 @@ const frameIn = [
title
:
'hello'
,
auth
:
true
},
component
:
()
=>
import
(
'@/pages/system/log'
)
component
:
()
=>
import
(
'@/pages/system/log'
)
},
// 刷新页面 必须保留
{
...
...
@@ -49,7 +51,7 @@ const frameIn = [
name
:
'refresh'
,
hidden
:
true
,
component
:
{
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
instance
=>
instance
.
$router
.
replace
(
from
.
fullPath
));
},
render
:
h
=>
h
()
...
...
@@ -61,7 +63,7 @@ const frameIn = [
name
:
'redirect'
,
hidden
:
true
,
component
:
{
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
instance
=>
instance
.
$router
.
replace
(
JSON
.
parse
(
from
.
params
.
route
)));
},
render
:
h
=>
h
()
...
...
@@ -84,7 +86,8 @@ const frameOut = [
meta
:
{
title
:
'$t:page.login.title'
},
component
:
()
=>
import
(
'@/pages/account/login'
)
component
:
()
=>
import
(
'@/pages/account/login'
)
},
// 注册
{
...
...
@@ -93,7 +96,8 @@ const frameOut = [
meta
:
{
title
:
'$t:page.register.title'
},
component
:
()
=>
import
(
'@/pages/account/register'
)
component
:
()
=>
import
(
'@/pages/account/register'
)
},
// 注册结果
{
...
...
@@ -103,7 +107,8 @@ const frameOut = [
auth
:
true
,
title
:
'注册结果'
},
component
:
()
=>
import
(
'@/pages/account/register/result'
)
component
:
()
=>
import
(
'@/pages/account/register/result'
)
}
];
...
...
@@ -111,14 +116,14 @@ const frameOut = [
* 错误页面
*/
const
errorPage
=
[
{
const
errorPage
=
[{
path
:
'/403'
,
name
:
'403'
,
meta
:
{
title
:
'403'
},
component
:
()
=>
import
(
'@/pages/system/error/403'
)
component
:
()
=>
import
(
'@/pages/system/error/403'
)
},
{
path
:
'/500'
,
...
...
@@ -126,7 +131,8 @@ const errorPage = [
meta
:
{
title
:
'500'
},
component
:
()
=>
import
(
'@/pages/system/error/500'
)
component
:
()
=>
import
(
'@/pages/system/error/500'
)
},
{
path
:
'*'
,
...
...
@@ -134,7 +140,8 @@ const errorPage = [
meta
:
{
title
:
'404'
},
component
:
()
=>
import
(
'@/pages/system/error/404'
)
component
:
()
=>
import
(
'@/pages/system/error/404'
)
}
];
...
...
@@ -146,4 +153,4 @@ export default [
...
frameIn
,
...
frameOut
,
...
errorPage
];
];
\ No newline at end of file
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