Closed zhangwei900808 closed 7 years ago
import Vue from 'vue'
import VueRouter from 'vue-router'
import Example from '../components/Example.vue'
import Home from '../components/Home.vue'
import Login from '../components/Login.vue'
import EleComponents from '../components/ElementComponents.vue'
import User from '../components/User.vue'
import to404 from '../components/404.vue'
import Map from '../pages/Map.vue'
import Editor from '../pages/Editor.vue'
Vue.use(VueRouter)
const router = new VueRouter({
routes: [{
path: '/',
component: Home
},
{
path: '/example',
component: Example
},
{
path: '/map',
component: Map
},
{
path: '/editor',
component: Editor
},
{
path: '/login/:id',
component: Login,
children: [
{
path:'',
component:to404
},{
path: 'profile',
component: User
}]
},
{
path: '/elecomponents',
component: EleComponents
}
],
mode: 'history',
})
export default router;
找到解决办法了,原来外层要套个div,这算不算bug!!!
<div class="">
<quill-editor ref="myTextEditor"
v-model="content"
:config="editorOption"
@blur="onEditorBlur($event)"
@focus="onEditorFocus($event)"
@ready="onEditorReady($event)">
</quill-editor>
</div>
为啥不在入口文件use
代码: