会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
天生自然
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2022年3月2日
安装Mock.js
摘要: cnpm install --save mockjs yarn add mockjs -dev import Mock from 'mockjs' Mock.mock('http://localhost:8080/user', { 'name': '@name', // 随机生成姓名 'name':
阅读全文
posted @ 2022-03-02 02:31 吴裕雄
阅读(138)
评论(0)
推荐(0)
编辑
安装axios
摘要: yarn add axios <template> <div class="page"> <h2>Home Page</h2> <el-button type="primary" @click="testAxios()">测试Axios调用</el-button> <el-button type="
阅读全文
posted @ 2022-03-02 02:18 吴裕雄
阅读(148)
评论(0)
推荐(0)
编辑
Module build failed: Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.
摘要: 原因:node-sass和sass-loader版本冲突了 解决: //卸载掉 npm uninstall sass-loader node-sass cnpm uninstall sass-loader node-sass //执行 cnpm install sass-loader@7.3.1 s
阅读全文
posted @ 2022-03-02 02:05 吴裕雄
阅读(953)
评论(0)
推荐(0)
编辑
安装SCSS
摘要: npm install node-sass --save-dev //安装node-sass npm install sass-loader --save-dev //安装依赖包sass-loader npm install style-loader --save-dev //安装style-loa
阅读全文
posted @ 2022-03-02 01:09 吴裕雄
阅读(902)
评论(0)
推荐(0)
编辑
配置路由
摘要: <template> <div class="notFound"> <h2>抱歉,您访问的页面<em>失联</em>啦 ...</h2> </div> </template> <script> export default { name: 'NotFound' } </script> import
阅读全文
posted @ 2022-03-02 00:56 吴裕雄
阅读(24)
评论(0)
推荐(0)
编辑
npm install --save element-ui element-ui/lib/theme-chalk/index.css
摘要: 这是因为项目的node_modules没有这个css文件; 通过命令行进入到项目文件夹下,然后执行:npm i element-ui -S 再重新启动就可以了。
阅读全文
posted @ 2022-03-02 00:20 吴裕雄
阅读(602)
评论(0)
推荐(0)
编辑