路由又整不明白了

news/2024/7/10 3:09:44 标签: vue
Failed to compile with 1 error                                                                                                        上午11:52:24

 error  in ./src/router/index.js

Module Error (from ./node_modules/eslint-loader/index.js):

/Users/ivyone/guaguaxi/lianxi01/src/router/index.js
   8:24  error  'Home' is not defined  no-undef
  12:24  error  'Home' is not defined  no-undef

✖ 2 problems (2 errors, 0 warnings)


 @ ./src/main.js 7:0-30 8:19-25
 @ multi (webpack)-dev-server/client?http://192.168.3.11:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js



http://www.niftyadmin.cn/n/957103.html

相关文章

html 点击滚动条滚动位置,jQuery scrollTop() 方法关于点击滚动指定位置的应用

最近工作遇到了相关问题,决定总结一番;​当页面的整体长度过程或者说内容过多的时候,导航的出现是必不可少的,通过滚动条滚动导航是一种改善用户体验的好方法,它的作用不但可以改善用户查阅效率,最重要是炫…

html5lib 安装命令,git安装、常用命令、错误解决

LINUX使用git pull --更新代码WINDOWS 使用git config --list --查看git配置信息git config user.name --查看git用户名git config user.email --查看git邮箱配置git config --global user.name “liuyanyan” --全局配置用户名git config --global user.email “112737069…

最后成功了,router,罪魁祸首是没有views/home这段

找半天 import { createRouter, createWebHashHistory } from vue-router import Home from /views/Homeconst router createRouter({history: createWebHashHistory(),routes: [{path: /,component: Home},{path: /Home,component: Home }] })export default router;

在项目里实现单文件的功能,只需要改一下HelloWorld.vue的内容即可

HelloWorld.vue <template><div id"app"><div v-bind:style"styleObject">《Java无难事》</div></div> </template><script> export default {name: HelloWorld,data() {return {styleObject: {color: red,fon…

三级目录怎么做html,三级目录.html

&#xfeff;三级目录$axure.utils.getTransparentGifPath function() { return resources/images/transparent.gif; };$axure.utils.getOtherPath function() { return resources/Other.html; };$axure.utils.getReloadPath function() { return resources/reload.html; };…

什么叫内联样式,有什么功能?

style是它的标志吗&#xff1f; 《java无难事》这个就是定义&#xff0c;绑定了一个样式&#xff0c;对象中&#xff0c;数据属性中定义了这个文字是红色&#xff0c;以及字的大小。 与别的非内联样式有什么区别&#xff1f; <template><div id"app">&…

html5随鼠标移动动画,使用JS实现气泡跟随鼠标移动的动画效果

气泡跟随鼠标移动&#xff0c;并在每次点击时产生不同的变化效果如下简单的气泡效果body{background-color:#000000;margin:0px;overflow:hidden}var canvas document.createElement(canvas),context canvas.getContext(2d),windowW window.screen.width ,windowH window.s…

html+table+row+col,html – css位置:粘不使用display:table-row-group

我有一个包含一些数据的表,我希望标题是粘性的.该表如下所示&#xff1a;Col ACol Bxx最小的CSS.table {display: table;}.row {display: table-row-group; /* remove this, it works, but is ugly */}.header {position: -webkit-sticky;position: sticky;top: 0;}.cell {disp…