直接上代码

    computed: {
      getStoreItem () {
        return this.$store.state.test
      }
    },
    watch: {
      getStoreItem () {
        console.log(this.$store.state.test,'asfas fas fas')
      }
    },

面试能积累很多东西包括有用的和没用的~~~

Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐