- 博客(4)
- 收藏
- 关注
原创 vuex基础设置
import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); const mutations = { ccurrtext(state,str) { console.log(str); state.ccurrency = str; } }; const actions = { ccurrtext({ ...
2018-05-22 09:26:32 129
原创 vuex监听变化
computed: { getUserIcons() { return this.$store.state.ccurrencytext; } }, watch: { getUserIcons(val) { console.log('监听变化:'); console.log(val); } },
2018-05-22 09:24:44 3653
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人