收银系统项目
vue-cli搭建開發環境
1.建立腳手架:npm install vue-cli -g;
2.測試是否安裝成功:vue- V;V必須是大寫;跳出版本號則成功
3.用vue命令初始化項目:vue init webpack ;init:初始化
install vue-router—yes; use eslint —no ;setup unit test—no;setup e2e tests with nightwaych–no.
4.npm install安裝package里的依賴包。
5.查看是否安裝成功 npm run dev
6.修改一些必要文件:在index.html里添加<style> html,body,#app{padding:0px;margin:0px;height:100%} </style>可更換標題名。
7.在components目錄下新建Pos組件,這個相當于程序員的入口文件,只保留一些基本內容,其余刪除`
8.修改路由文件,先用import引入Pos摸板組件,然后修改routes里內容name: Pos, component: Pos。
總結
- 上一篇: 诛仙手游-各属性道法换算
- 下一篇: 2021年国外网络安全博客和网站排名