摘要: 暴力删除nodejs导致无法重新安装 Later version of Node.js is already installed. Setup will now exit 1、电脑全局搜索nodejs,保证node相关不存在 2、修改“环境变量”: 删除path值中的node及npm 3、重启 4、 阅读全文
posted @ 2021-02-19 12:40 YINGYAN 阅读(8564) 评论(0) 推荐(0) 编辑
摘要: Vue + UEditor + v-model 双向绑定 一、安装 1 npm i vue-ueditor-wrap 2 # 或者 3 yarn add vue-ueditor-wrap 二、下载文件,vue-ueditor-wrap 作者修定版(https://github.com/HaoChua 阅读全文
posted @ 2020-01-03 17:07 YINGYAN 阅读(12613) 评论(0) 推荐(1) 编辑
摘要: 在Vue项目中前后端交互时,早期Vue使用Vue-resource实现异步请求。从Vue2.0之后就不再对vue-resource进行更新,Vue官方推荐使用axios. vue-resource Vue.js的插件提供了使用XMLHttpRequest 或 JSONP进行Web请求和处理响应的服务 阅读全文
posted @ 2019-11-28 15:55 YINGYAN 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1、html 中引入 echarts html中添加script标签如下: <script src="//cdn.bootcss.com/echarts/4.2.1/echarts.simple.min.js"></script> 2、在 webpack 中配置使用 echarts CDN 在vue 阅读全文
posted @ 2019-06-04 10:10 YINGYAN 阅读(10572) 评论(0) 推荐(0) 编辑
摘要: <template> <el-table @selection-change="handleSelectionChange" :row-key="getRowKeys"> <!--type必须是selection的一列设置reserve-selection属性--> <el-table-column 阅读全文
posted @ 2019-05-09 19:02 YINGYAN 阅读(5199) 评论(0) 推荐(0) 编辑
摘要: const CancelToken = axios.CancelToken; const source = CancelToken.source(); axios.interceptors.request.use( config => { config.cancelToken = source.to 阅读全文
posted @ 2019-04-23 13:46 YINGYAN 阅读(3474) 评论(0) 推荐(0) 编辑
摘要: 1、创建 filters.js(methods.js) 文件: 2、filters.js(methos.js) 中定义全局过滤方法: 1 export default { 2 /** 时间戳转换 */ 3 showTime (time) { 4 let date = null 5 if ((time 阅读全文
posted @ 2019-04-17 13:54 YINGYAN 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 1、安装elementUI $ npm i element-ui -S 2、安装主题工具 npm i element-theme -g 3、安装chalk主题 npm 安装 npm i element-theme-chalk -D (或) GitHub 拉取最新代码 npm i https://gi 阅读全文
posted @ 2019-04-11 10:41 YINGYAN 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: 1、创建vue项目 cmd命令执行 vue create ruc-continuing 创建vue项目,项目名称:ruc-continuing 选择一个 preset(预置项),或自定义: 选择自定义配置选项 路由是否使用History模式?n 选择使用css风格编译语法 选择一种TypeScrip 阅读全文
posted @ 2019-04-03 11:07 YINGYAN 阅读(16679) 评论(0) 推荐(1) 编辑
摘要: 一、UI组件及框架 element - 饿了么出品的web UI mint-ui - Vue 的移动UI元素 iview - 基于 Vuejs 的开源 UI 组件库 Keen-UI - 轻量级的基本UI组件合集 vue-material - 通过Vue Material和Vue 2建立精美的app应 阅读全文
posted @ 2019-03-26 13:13 YINGYAN 阅读(2418) 评论(0) 推荐(0) 编辑