随笔分类 -  vue

.env.development .env.production
摘要:.env.development 和 .env.production 是两个环境变量配置文件,它们分别用于开发环境和生产环境。 Vue CLI 创建的项目 ,可以创建以VUE_APP_ 前缀的变量 vite 创建的项目 ,可以创建以VITE_ 前缀的变量 npm run serve 用于开发环境,n 阅读全文

posted @ 2024-08-14 15:30 867511789 阅读(121) 评论(0) 推荐(0) 编辑

npm执行速度慢的问题
摘要:查看npm代理 npm config get registry 更换npm镜像 npm config set registry=https://registry.npmmirror.com 安装cnpm npm install -g cnpm --registry=https://registry. 阅读全文

posted @ 2024-08-02 16:56 867511789 阅读(118) 评论(0) 推荐(0) 编辑

vue store用法
摘要:import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) 首字母不能大写 export default new Vuex.Store({ state: { //这里放全局参数 调用 this.$store.state.online 模块调 阅读全文

posted @ 2022-07-28 17:33 867511789 阅读(1679) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示