摘要:
nrm: npm registry manager npm 镜像源管理工具 安装nrm npm install -g nrm 查看所有的镜像源 nrm ls # nrm ls npm https://registry.npmjs.org/ * yarn https://registry.yarnpk 阅读全文
posted @ 2020-07-24 16:15
荣光无限
阅读(483)
评论(0)
推荐(0)
摘要:
严格模式 import getters from './getters' import mutations from './mutations' import actions from './actions' export default new Vuex.Store({ strict: true, 阅读全文
posted @ 2020-07-24 13:10
荣光无限
阅读(1016)
评论(0)
推荐(0)
摘要:
定义 process.env的时机 如果已经提取了公共配置文件 webpack.common.js 分别定义了开发配置webpack.dev.js和生产配置webpack.prod.js 在webpack.common.js 合并 选项时的 plugins中使用插件DefinePlugin cons 阅读全文
posted @ 2020-07-24 11:18
荣光无限
阅读(356)
评论(0)
推荐(0)
摘要:
mapAction-store中的异步方法 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { msg: 'Hello world', count: 阅读全文
posted @ 2020-07-24 10:39
荣光无限
阅读(12749)
评论(0)
推荐(0)
摘要:
mapMutation-store中的同步方法 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { msg: 'Hello world', count 阅读全文
posted @ 2020-07-24 10:20
荣光无限
阅读(1627)
评论(0)
推荐(0)

浙公网安备 33010602011771号