删除首页,去掉登录默认账号密码,
This commit is contained in:
parent
4fca11d1b7
commit
f23bb34bc4
@ -36,9 +36,9 @@ export default {
|
||||
let matched = this.$route.matched.filter(item => item.meta && item.meta.title)
|
||||
const first = matched[0]
|
||||
|
||||
if (!this.isDashboard(first)) {
|
||||
matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched)
|
||||
}
|
||||
// if (!this.isDashboard(first)) {
|
||||
// matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched)
|
||||
// }
|
||||
|
||||
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
|
||||
},
|
||||
|
@ -35,14 +35,14 @@ export const constantRouterMap = [
|
||||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
redirect: '/dashboard',
|
||||
// redirect: '/dashboard',
|
||||
children: [
|
||||
{
|
||||
path: 'dashboard',
|
||||
component: (resolve) => require(['@/views/home'], resolve),
|
||||
name: 'Dashboard',
|
||||
meta: { title: '首页', icon: 'index', affix: true, noCache: true }
|
||||
}
|
||||
// {
|
||||
// path: 'dashboard',
|
||||
// component: (resolve) => require(['@/views/home'], resolve),
|
||||
// name: 'Dashboard',
|
||||
// meta: { title: '首页', icon: 'index', affix: true, noCache: true }
|
||||
// }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -32,6 +32,7 @@
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
class="filter-item"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="area in areaOptions"
|
||||
|
@ -56,8 +56,10 @@ export default {
|
||||
codeUrl: '',
|
||||
cookiePass: '',
|
||||
loginForm: {
|
||||
username: 'admin',
|
||||
password: '123456',
|
||||
// username: 'admin',
|
||||
// password: '123456',
|
||||
username: '',
|
||||
password: '',
|
||||
rememberMe: false,
|
||||
code: '',
|
||||
uuid: ''
|
||||
|
Loading…
Reference in New Issue
Block a user