diff --git a/components/model/PartyOrg.js b/components/model/PartyOrg.js index c853d293..7b3ee15f 100644 --- a/components/model/PartyOrg.js +++ b/components/model/PartyOrg.js @@ -1,4 +1,5 @@ import http from "dvcp-ui/lib/js/request"; +import Vue from "vue" export default class PartyOrg { constructor(id) { @@ -9,7 +10,7 @@ export default class PartyOrg { init() { return PartyOrg.getInfo(this.id).then(data => { - Object.entries(data).map(([k, v]) => this[k] = v) + Object.entries(data).map(([k, v]) => Vue.set(this, k, v)) }) } diff --git a/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue b/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue index edaf3e15..1f3fd70b 100644 --- a/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue +++ b/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue @@ -50,6 +50,7 @@