zoukankan      html  css  js  c++  java
  • Vuex 使用了 module 后的访问方法 ..

    如果 使用了  module 和 namespace  

    state 数据:=>   this.$store.state.User.info  (user 是模块名字. info 是 state 里面的属性名字)

    getters 数据: => this.$store.getters['User/getUserInfo']    (user namespace,模块名,  getUserInfo 是 getter 的名字)

    mutations  =>   this.$store.commit( 'AppKeepAlive/remove', name);   (AppKeepAlive 模块名, remove方法名,  name 是荷载数据 payload)

     

    
    
  • 相关阅读:
    gcd
    Kuglarz
    三分题解
    杜教筛
    第一组dp解题报告
    dp总结1
    cf-BitwiseXor
    6.6总结
    图论总结
    CF1309总结
  • 原文地址:https://www.cnblogs.com/whm-blog/p/10089157.html
Copyright © 2011-2022 走看看