為什么我的List.vue頁(yè)面獲取不到Add.vue添加的數(shù)據(jù)呢?
<script> import?store?from?'@/store/index' export?default?{ ??name:?"NewsList", ??store, ??computed:?{ ????packLists?()?{ ??????return?store.state.packLists ????} ??} } </script>
App.vue
List.vue
這個(gè)是什么原因呢?試了很多次都不行
2022-04-19
@慕無(wú)忌7118148
正解,注意alias的路徑可以在vue.config.js中配置
2020-09-11