defaultAppLanguageId(){
      return this.$store.state.common.gameInfo.defaultLanguageId;
    }

我将上面的这个计算属性绑定到了选择框中

报错如下:

computed计算属性get、set

 

 于是给它加个get和set就可以了

defaultAppLanguageId:{
      get() {
          return this.$store.state.common.gameInfo.defaultLanguageId
      },
      set(newVal) {
          newVal = this.$store.state.common.gameInfo.defaultLanguageId
      }
    },

 

 

 

 

 

相关文章:

  • 2021-12-03
  • 2021-12-26
  • 2021-11-06
  • 2021-09-13
  • 2021-08-17
  • 2021-07-28
  • 2021-11-28
  • 2021-05-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案