User through domain name /IP Path to visit Vue New project of scaffold construction , What is the process of the visit ?


1. first First visited Vue Project's index.html file ; index.html Automatically loaded main.js file (Vue Global profile for the project );

2. main.js The file is Vue Global profile for the project , stay main.js In the file, we can see the introduction in the file ./App assembly ;

3. So the third step should be to visit APP assembly ; stay APP Component has <router-view/>; <router-view/> Points to the index.js file ;
import Vue from 'vue' import Router from 'vue-router' import HelloWorld from
'@/components/HelloWorld' Vue.use(Router) export default new Router({ routes: [
{ path: '/', name: 'HelloWorld', component: HelloWorld } ] })
4. stay router Directory index.js In document , You can see the configured routing object information

5. Finally, in the route, we see the root path / The associated components are HelloWorld, When we visit the root path , The displayed page is HelloWorld Content in component ;

©2019-2020 Toolsou All rights reserved,
It's unexpected Python Cherry tree (turtle The gorgeous style of Library )html Writing about cherry trees , Writing about cherry trees java Four functional interfaces ( a key , simple ) Browser kernel ( understand )06【 Interpretation according to the frame 】 Data range filtering -- awesome HashMap Explain in detail os Simple use of module computer network --- Basic concepts of computer network ( agreement , system ) Some East 14 Pay change 16 salary , Sincerity or routine ?