You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
791 B

<template>
<template-editor v-model="lp" />
</template>
<script>
import TemplateEditor from '@/components/TemplateEditor/TemplateEditor.vue'
export default {
layout: 'admin',
components: { TemplateEditor },
data: () => ({
doc: {},
lp: []
}),
mounted () {
this.$store.commit('admin/ui/setBreadcrumbs', [
{ text: 'Admin', to: '/admin' },
{ text: 'Landing Page', to: '/admin/landingpage' },
{ text: 'Edit', to: `/admin/landingpage/${this.$route.params.id}` }
])
this.getDoc()
},
methods: {
getDoc () {
this.$axios.get(`/cloud/api/landingpages/${this.$route.params.id}`)
.then((res) => {
this.doc = res.data.data
this.$store.commit('admin/ui/setTitle', this.doc.name)
})
}
}
}
</script>