移动main组件到components下
This commit is contained in:
parent
5ed857d502
commit
19a2fca796
|
|
@ -136,12 +136,16 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
'$route' (newRoute) {
|
||||
const { name, query, params, meta } = newRoute
|
||||
this.addTag({
|
||||
route: { name, query, params, meta },
|
||||
type: 'push'
|
||||
})
|
||||
this.setBreadCrumb(newRoute.matched)
|
||||
this.setTagNavList(getNewTagList(this.tagNavList, newRoute))
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
console.log(123123123131231)
|
||||
/**
|
||||
* @description 初始化设置面包屑导航和标签导航
|
||||
*/
|
||||
|
|
@ -11,7 +11,6 @@ import importDirective from '@/directive'
|
|||
import 'iview/dist/styles/iview.css'
|
||||
import './index.less'
|
||||
import '@/assets/icons/iconfont.css'
|
||||
// import '@/mock'
|
||||
// 实际打包时应该不引入mock
|
||||
/* eslint-disable */
|
||||
if (process.env.NODE_ENV !== 'production') require('@/mock')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Main from '@/view/main'
|
||||
import Main from '@/components/main'
|
||||
import parentView from '@/components/parent-view'
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue