init product detail component
This commit is contained in:
parent
800619df9f
commit
82ef0947cd
2 changed files with 14 additions and 0 deletions
13
static/components/product-detail/product-detail.js
Normal file
13
static/components/product-detail/product-detail.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
async function productDetail(path) {
|
||||
const template = await loadTemplateAsync(path)
|
||||
Vue.component('product-detail', {
|
||||
name: 'product-detail',
|
||||
template,
|
||||
|
||||
props: ['product'],
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue