
Vue
小贼驴
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Vue文件配置全局变量
首先新建一个.vue 文件用来定义全局变量 GLOBAL.vue <!--全局变量配置文件--> <script type="text/javascript"> var BASE_URL="http://127.0.0.1:8080"; /*暴露变量*/ export default{ BASE_URL } &...原创 2018-08-10 21:53:55 · 2554 阅读 · 0 评论 -
npm设置和取消代理的方法
设置代理 npm config set proxy=http://127.0.0.1:8087 npm config set registry=http://registry.npmjs.org 关于https 经过上面设置使用了http开头的源,因此不需要设https_proxy了,否则还要增加一句: npm config set https-proxy http://serve...原创 2018-08-10 21:56:12 · 2653 阅读 · 0 评论 -
Vue xxx.js xxx.vue 中引用全局配置文件
global.js 文件如下: 1.注意一定要使用module.exports. export default和export 均无效. 'use strict'; module.exports = { /*项目名称*/ project_name: 'wechatoltest', /*包名*/ package_name: 'langXu', /*本地启动服务端口号*/ ...原创 2018-08-11 17:36:27 · 9098 阅读 · 1 评论