vue
csyz12138
这个作者很懒,什么都没留下…
展开
-
VueCli3.0 + axios反向代理解决跨域问题
在使用vuecli3.0开发过程中,请求后台给的接口时,报错如下 然后使用 http-proxy-middleware 解决 安装 npm install http-proxy-middleware 使用在 vue.config.js 文件中添加如下代码 devServer: { // 设置代理 proxy: { "/api": { ...原创 2018-12-03 17:29:41 · 4576 阅读 · 0 评论 -
sublime text3 配置eslint
sublime text3 配置eslint 1.环境说明 node @>6.14 全局安装 npm i eslint 2.下载插件 sublimelinter sublimelinter-eslint 3.配置插件 Preferences -> Package Setting -> SublimeLinter -> setting 打开后在user里做如下配置 //...原创 2019-01-14 10:28:41 · 1013 阅读 · 0 评论 -
sublime text 3 使用说明
sublime text 3 使用说明 软件下载 sublime text3 下载地址 快捷键设置 默认:Preferences -> Key Bindings - Default 用户:Preferences -> Key Bindings - user 插件导入 ctrl + shift + p打开命令窗口 输入install 回车(选中的应该是Package Control:in...原创 2019-01-14 10:34:33 · 362 阅读 · 0 评论 -
一些小笔记
1. 在 Vue 文件中的 style 部分引入 less 文件或css文件 <style scoped> @import './../style/index.less'; </style> 2. Vue-Cli中引入jquery 安装jquery npm install jquery@对应版本 引入 在main.js中加入 import $ from “jquer...原创 2019-02-27 16:14:35 · 573 阅读 · 0 评论 -
Vue You are using the runtime-only build of Vue where the template compiler is not available. Either
错误警告 You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build. 解决方案 在vue.c...原创 2019-02-28 10:45:58 · 723 阅读 · 0 评论