[fix] delete event
This commit is contained in:
@@ -176,7 +176,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['delEvent']),
|
|
||||||
copyLink () {
|
copyLink () {
|
||||||
this.copied=true
|
this.copied=true
|
||||||
setTimeout(() => this.copied=false, 3000)
|
setTimeout(() => this.copied=false, 3000)
|
||||||
|
|||||||
@@ -9,11 +9,13 @@ el-menu
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { MessageBox } from 'element-ui'
|
import { MessageBox } from 'element-ui'
|
||||||
|
import { mapActions } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EventAdmin',
|
name: 'EventAdmin',
|
||||||
props: ['event'],
|
props: ['event'],
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['delEvent']),
|
||||||
async remove () {
|
async remove () {
|
||||||
try {
|
try {
|
||||||
await MessageBox.confirm(this.$t('event.remove_confirmation'), this.$t('common.confirm'), {
|
await MessageBox.confirm(this.$t('event.remove_confirmation'), this.$t('common.confirm'), {
|
||||||
|
|||||||
Reference in New Issue
Block a user