2018年11月21日

vue mint-ui swipe 不显示或显示空白

摘要: vue mint-ui swipe 不显示或显示空白?解决需要在mt-swipe上层元素设置高度 <div> <div> <mt-header title="首页"></mt-header></div> <div style="height:200px"> <mt-swipe :auto="4000 阅读全文

posted @ 2018-11-21 13:21 微先锋 阅读(4318) 评论(0) 推荐(0) 编辑

Mint-UI 没有样式?

摘要: 如果用mint-ui组件,如toast没有样式,是因为没有映入全局样式和导入MintUI 方法如下: 1、安装 npm install mint-ui -S -S表示 --save 2、在main.js中引入mint Ui的css 和 插件 import Mint from'mint-ui' imp 阅读全文

posted @ 2018-11-21 11:49 微先锋 阅读(596) 评论(0) 推荐(0) 编辑

axios使用方法

摘要: npm install axios创建文件夹api/index.js main.js import Api from './api/index.js'; Vue.prototype.$api = Api; 调用 this.$api.get('/apis/index.php?act=login', { 阅读全文

posted @ 2018-11-21 10:33 微先锋 阅读(1504) 评论(0) 推荐(0) 编辑

2018年11月20日

【原创】Vue.js 中 axios 跨域访问错误

摘要: 1、假如访问的接口地址为 http://www.test.com/apis/index.php (php api 接口)2、而开发地址为http://127.0.0.1:8080,当axios发起请求时,出现如下错误:Failed to load http://www.test.com/apis/i 阅读全文

posted @ 2018-11-20 22:15 微先锋 阅读(2015) 评论(0) 推荐(0) 编辑

vue项目测试和打包发布

摘要: 在线测试:npm run dev 发布打包:npm run build 打包后,代码文件在dist文件夹下面,可以正式发布了,复制到其它web服务器下面,在浏览器用http访问。 阅读全文

posted @ 2018-11-20 13:20 微先锋 阅读(1463) 评论(0) 推荐(0) 编辑

Vue export和import

摘要: config/index.js import strs from '@/config'; //此处直接写@config就可以, 如果是export default, import 任意名字都可以config/index.js import {url,name} from '@/config'; // 阅读全文

posted @ 2018-11-20 13:16 微先锋 阅读(323) 评论(0) 推荐(0) 编辑

2018年11月14日

xampp、phpstudy安装phalcon

摘要: 1、下载扩展 https://github.com/phalcon/cphalcon/releases/tag/v3.4.1选择PHP对应版本的phalcon扩展2、PHP.ini 配置phalcon extension=php_phalcon.dll3、判断phalcon是否安装成功phpinfo 阅读全文

posted @ 2018-11-14 09:39 微先锋 阅读(312) 评论(0) 推荐(0) 编辑

2018年11月3日

使用VUE开发微信小程序

摘要: 使用 mpvue 开发小程序,你将在小程序技术体系的基础上获取到这样一些能力: 彻底的组件化开发能力:提高代码复用性完整的 Vue.js 开发体验方便的 Vuex 数据管理方案:方便构建复杂应用快捷的 webpack 构建机制:自定义构建策略、开发阶段 hotReload支持使用 npm 外部依赖使 阅读全文

posted @ 2018-11-03 10:24 微先锋 阅读(4576) 评论(0) 推荐(0) 编辑

2018年11月1日

remote: Incorrect username or password ( access token )

摘要: git.exe push --progress "origin" master:master remote: Incorrect username or password ( access token )fatal: Authentication failed for 'https://gitee. 阅读全文

posted @ 2018-11-01 10:53 微先锋 阅读(2492) 评论(0) 推荐(0) 编辑

2018年10月31日

HBuilder 连接小米手机

摘要: (1)手机与电脑未用USB数据线连接(嘿嘿,这一部大家估计都做到了,可略过) (2)电脑上需要安装电脑版的手机助手,帮助手机顺利连接上(用安卓手机联调的话可安装360手机助手,若用iPhone的话可安装iTools) (3)电脑需要进行配置,当然手机也需要啦,打开手机 “设置” > 其他设置 > 开 阅读全文

posted @ 2018-10-31 11:53 微先锋 阅读(2418) 评论(0) 推荐(0) 编辑

导航