1、项目创建
① npm init vite@latest my-vue-app -- --template vue
② npm i
③ 运行: npm run dev
④ 安装 vuex npm install vuex@next --save
2、Vue建立了很多模块后,要分清楚自己在运行哪个模块,要不然改其他模块也不会显示在网页上效果。
at <Home onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > >
at <RouterView>
at <App>
![在这里插入图片描述](https://img-blog.csdnimg.cn/7edcf405219c40178c507bfd67c7a6bb.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAR3JhcGVfTA==,size_20,color_FFFFFF,t_70,g_se,x_16)
3、函数间要加封号!