A little pit when learning Vue

Really get to know yourself before you make any decision
.


1.v-for has no prompt

可能是原来的vue-helper不起作用了,

有帖子推荐用Vue 3 Snippets,

== Uninstall vue-helper to solve after installing Vue 3 Snippets ==


2. The vue-router case page does not come out

The page becomes like a lost hyperlink

vue-router


The investigation found that path was written as paths. . .

3. In the last extracted routes section, 3 parallel statements are separated by commas, which will cause the other two statements to not work

const Welcome = {'path': '/welcome', 'component':{ 'template': '<div>欢迎</div>' }}

const Student = {'path': '/student', 'component':{ 'template': '<div>student list</div>'}}

const Teacher = {'path': '/teacher', 'component':{ 'template': '<div>teacher list</div>'}}

Should use semicolon or not write

Summary: I can only say that there are still many small problems caused by symbols in vue...

Guess you like

Origin blog.csdn.net/codedecentt/article/details/111317336