[Vue.2x]如何使用<script>从Vuex获取数据

时间:2018-05-21 09:27:21

标签: javascript vue.js

我想在 script 中使用 function ,但在 export default {} 中不能从 Vuex <获取数据/ code>(store)已计算。&#xA;
&#xA;示例:&#xA; &lt; script&gt;&#xA; getData function(){}&#xA; export默认{}&#xA;&lt; / script&gt;

&#xA;

0 个答案:

没有答案