![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
zzzmj_
NYOJ主页
https://acm.nyist.edu.cn/JudgeOnline/profile.php?userid=Leida_%E6%9C%B1%E6%A8%A1%E5%81%A5
展开
-
element-admin同时使用mock数据和真实后端接口
背景 系统接入了真实后端接口进行登录,但业务接口还没开发完成,需要mock数据。 方案 一般来说有两种方案 多个server, 启用纯前端mock 这里建议我采取的是第二种方案。 具体操作步骤如下 启用src/main.js下的mockXHR方法,并将环境改成development 在mock文件夹下创建dashboard.js编写mock数据 具体的书写方法可以参考生成的几个mockjs文件,如arcticle.js等 export default [ { url: `/原创 2021-03-11 15:03:07 · 1355 阅读 · 0 评论 -
vue-router控制台报错You are using the runtime-only build of Vue where the template compiler...
使用vue-router报错 You are using the runtime-only build of Vue where the template compiler is not available. 今天第一次用vue-router,按照官网的例子抄了一遍 首先在main.js中引入vue-router配置 import Vue from 'vue' import App from ...原创 2020-04-22 10:03:33 · 734 阅读 · 0 评论