computed: { selectedQuestions() { let selectedQuestions = this.editedItem.questions; return this.questions.filter(function (question) { return selectedQuestions.includes(question.id); }); },
computed计算属性,每次进入页面将一直沿用selectedQuestions第一次的信息,不会再触发selectedQuestions,这就是依赖缓存,只有
this.editedItem.questions发生改变了selectedQuestions才会触发,值才会改变