Home > front end >  Questions about the Vue routing setup
Questions about the Vue routing setup

Time:10-02

My vue version 2.9.6
Vue - cli is 4.0
Routing but I want to set up a new route folder as online had
And & lt; The router - view> These labels webstorm don't identify
So now I have deleted all changes to return to the original state what should I do ah,,,
Below is the initial pictures folder

CodePudding user response:

Not a router

CodePudding user response:

The
reference 1 floor console. The log () response:
router, isn't it


The leakage,,,
New folder can't I use,,,

CodePudding user response:

refer to the second floor qq_28477977 response:
Quote: reference 1 floor console. The log () response:

Not a router


The leakage,,,
I can't use the new folder,,,

It must be not configured

CodePudding user response:

NPM vue - did the router installation, main js have introduced initialization vue whether by the router

The main, the router configuration of js code

CodePudding user response:

refer to three dozen soy sauce 4 floor response:
NPM vue - did the router installation, main. Js have introduced initialization vue whether by the router

The main, the router configuration of js code to the



Theory is installed because rely on there and I at the time of the import webstorm automatically downloaded
This is dependent on the figure of


After creating the project is like this is not the router folder (welcome. Vue is my own plus)


Main. Js file content is as follows:


This is the HTML

CodePudding user response:

. The problem is the main js new inside Vue is not in the time of the router inside
 
Const vue=new vue ({
The router,
Store,
I18n,
Data: {
EventHub: new Vue ()
},
Render: (h)=& gt; H (App)
}). $mount (' # app);

CodePudding user response:

Vue - 4.0 I also used the cli, but 3.0 in vue create app created project is configured not to what a new routing configuration can only add components to change

CodePudding user response:

This is clearly the main had not introduced into the router configuration routing
  • Related