diff --git a/spug_web/src/components/account/Permission.vue b/spug_web/src/components/account/Permission.vue index 5801b4f..786953e 100644 --- a/spug_web/src/components/account/Permission.vue +++ b/spug_web/src/components/account/Permission.vue @@ -244,7 +244,7 @@ fetch() { this.loading = true; this.$http.get(`/api/account/roles/${this.role.id}/permissions`).then(res => { - this.codes = res.result + this.codes = res.result; }, res => this.$layer_message(res.result)).finally(() => this.loading = false) }, saveCommit() { @@ -264,4 +264,4 @@ this.fetch() } } - \ No newline at end of file + diff --git a/spug_web/src/components/account/TagTd.vue b/spug_web/src/components/account/TagTd.vue index 7954c46..414f621 100644 --- a/spug_web/src/components/account/TagTd.vue +++ b/spug_web/src/components/account/TagTd.vue @@ -1,5 +1,5 @@ \ No newline at end of file + diff --git a/spug_web/src/components/publish/App.vue b/spug_web/src/components/publish/App.vue index 94ef93c..903310e 100644 --- a/spug_web/src/components/publish/App.vue +++ b/spug_web/src/components/publish/App.vue @@ -162,7 +162,6 @@ let [action, index] = command.split(' '); this.form = this.$deepCopy(this.tableData[index]); if (action === 'edit') { - if (this.images.length === 0) this.fetchImages(); this.dialogAddVisible = true; this.fetchNotifyWay(); @@ -200,6 +199,7 @@ // this.$router.push({name: 'app_add'}) this.form = this.init_form(); this.dialogAddVisible = true; + this.fetchNotifyWay(); if (this.images.length === 0) this.fetchImages() }, addGroup() { @@ -220,4 +220,4 @@ this.fetch(true) } } - \ No newline at end of file +