Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix: new bugs otzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries0d0f committed Oct 29, 2018
1 parent 775495f commit d52e725
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 14 deletions.
25 changes: 20 additions & 5 deletions src/assets/scss/theme/meibo-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,27 @@
}
}

.editor-container.paragraph {
color: $content;
.editor-container {
&.paragraph {
color: $content;

h2 {
&:before {
color: $tone;
input {
color: $content;
}

h2 {
&:before {
color: $tone;
}
}
}

>span.active {
color: $tone;
}

.image.active {
border-color: $tone;
}
}

Expand Down Expand Up @@ -152,6 +166,7 @@

.theme {
color: $tone;

p {
color: $white;
}
Expand Down
24 changes: 20 additions & 4 deletions src/assets/scss/theme/meibo-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,28 @@
}
}

.paragraph {
h2 {
&:before {
color: $tone;
.editor-container {
&.paragraph {
color: $content;

input {
color: $content;
}

h2 {
&:before {
color: $tone;
}
}
}

>span.active {
color: $tone;
}

.image.active {
border-color: $tone;
}
}

.datepicker-inputbox,
Expand Down
2 changes: 1 addition & 1 deletion src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
export default {
data () {
return {
recaptcha: true,
recaptcha: false,
user: {
username: '',
password: ''
Expand Down
8 changes: 4 additions & 4 deletions src/views/News/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
this.getAllNews()
},
methods: {
...mapActions(['getAllPost', 'deletePost', 'setMessage']),
async deleteAction (pid) {
...mapActions(['getAllNews', 'deleteNews', 'setMessage']),
async deleteAction (nid) {
if (confirm('確定要刪除這篇文章?此動作不可回復')) {
let success = await this.deletePost({uid: this.user.uid, pid})
let success = await this.deleteNews({uid: this.user.uid, nid})
if (success) {
this.getAllPost()
this.getAllNews()
} else {
this.setMessage({ title: '操作失敗,請洽系統管理員', status: 'error' })
}
Expand Down

0 comments on commit d52e725

Please sign in to comment.