JavaScript/vue.js/mounted:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== 引言 == == 生命周期 == == error == * vue.runtime.esm.js?2b0e:619 [Vue warn]: Computed property "whetherMyself" was assigned to but it has no setter. *: <syn…”
 
Kangkk​(留言 | 贡献)
 
第13行: 第13行:
     set: function (newValue) {
     set: function (newValue) {
       this.$store.state.user.token = newToken
       this.$store.state.user.token = newToken
    }
  },
  whetherMyself: {
    get: function () {
      return this.myselfStatus;
    }, // setter
    set: function (boo) {
      this.myselfStatus = boo;
     }
     }
   }
   }
}</syntaxhighlight>
}</syntaxhighlight>