vue-cli中vuex的使用
在项目的src文件下新建文件夹store,store之下再新建index.js。 在main.js中引入 在store>index.js中的代码结构 store ...
在项目的src文件下新建文件夹store,store之下再新建index.js。 在main.js中引入 在store>index.js中的代码结构 store ...
axios安装 npm install --save axios #使用 在main.js中 在组件中使用 封装axios 在src文件夹中新建一个api ...
原因:Promise在ie上的支持不是很好导致的! 解决方式: 安装 babel-polyfill 安装命令: npm install --save-dev babel-polyfill 在入口 ...
在项目目录中找到config文件夹>index.js 的 host: 'localhost'改为 host: '0.0.0.0', 例如本地ip地址172.0.0.0 本来在npm run ...