Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
TemplateProjects
FullstackTemplate-Formkit-Tailwind
Commits
43eb7e87
Commit
43eb7e87
authored
1 year ago
by
Reshma Bhosale
Browse files
Options
Downloads
Patches
Plain Diff
Fixed : VueMeta not working
parent
b98c6f43
Branches
rb_OptionsAPI_VueMetaFix
Branches containing commit
Tags
Tags containing commit
1 merge request
!10
Fixed : VueMeta not working in options api
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app/package.json
+1
-1
app/package.json
app/src/App.vue
+14
-18
app/src/App.vue
app/src/main.js
+2
-0
app/src/main.js
app/src/views/vueMetaExample.vue
+1
-1
app/src/views/vueMetaExample.vue
with
18 additions
and
20 deletions
app/package.json
+
1
−
1
View file @
43eb7e87
...
...
@@ -30,7 +30,7 @@
"vue"
:
"^3.3.1"
,
"vue-i18n"
:
"^9.2.0-beta.15"
,
"vue-json-viewer"
:
"^3.0.4"
,
"vue-meta"
:
"^3.0.0-alpha.
9
"
,
"vue-meta"
:
"^3.0.0-alpha.
10
"
,
"vue-router"
:
"^4.0.12"
,
"vue3-clipboard"
:
"^1.0.0"
,
"vue3-confirm-dialog"
:
"^0.1.1"
,
...
...
This diff is collapsed.
Click to expand it.
app/src/App.vue
+
14
−
18
View file @
43eb7e87
<
template
>
<div
id=
"app"
>
<metainfo>
<template
v-slot:title=
"
{ content }">
{{
content
?
`${content
}
`
:
""
}}
<
/template
>
<
/metainfo
>
<
div
v
-
if
=
"
mainStore.isPageBlocked
"
class
=
"
absolute top-0 right-0 left-0 bottom-0 bg-white opacity-80 z-50 flex items-center justify-center
"
>
<
div
class
=
"
bg-gray-200 w-full min-h-screen flex justify-center items-center
"
>
<
div
class
=
"
flex min-h-screen w-full items-center justify-center bg-gray-200
"
>
...
...
@@ -21,7 +24,6 @@
<
/template
>
<
script
>
import
{
useMeta
}
from
"
vue-meta
"
import
Footer
from
"
./components/common/Footer.vue
"
import
{
main
}
from
'
./store/index
'
...
...
@@ -31,25 +33,19 @@
Footer
,
}
,
data
()
{
return
{}
},
setup
()
{
useMeta
({
title
:
""
,
htmlAttrs
:
{
lang
:
"
en
"
,
amp
:
true
},
})
const
mainStore
=
main
()
return
{
mainStore
}
return
{
mainStore
:
main
}
}
,
metaInfo
:
{
meta
:
[
{
vmid
:
"
description
"
,
name
:
"
description
"
,
content
:
"
Test title
"
,
template
:
(
chunk
)
=>
`
${
chunk
}
- FullStack`
,
},
],
meta
:
[
{
vmid
:
"
description
"
,
name
:
"
description
"
,
content
:
"
Test title
"
,
template
:
(
chunk
)
=>
`${chunk
}
- FullStack`
,
}
,
],
}
,
}
<
/script
>
This diff is collapsed.
Click to expand it.
app/src/main.js
+
2
−
0
View file @
43eb7e87
...
...
@@ -4,6 +4,7 @@ import router from './router'
import
mqlOptions
from
'
./plugins/mqlOptions.js
'
import
{
loadLanguageAsync
,
i18n
}
from
'
./setup/i18n-setup.js
'
import
{
createMetaManager
}
from
"
vue-meta
"
;
import
{
plugin
as
vueMetaPlugin
}
from
'
vue-meta
'
import
Toaster
from
'
@meforma/vue-toaster
'
import
'
../assets/fonts/iconsax/style.css
'
import
"
./index.css
"
...
...
@@ -27,6 +28,7 @@ vm.use(router)
vm
.
use
(
plugin
,
defaultConfig
(
formKitConfig
))
vm
.
use
(
defaultConfig
)
vm
.
use
(
createMetaManager
())
vm
.
use
(
vueMetaPlugin
)
vm
.
use
(
Toaster
,
{
position
:
"
top-right
"
,
duration
:
3000
...
...
This diff is collapsed.
Click to expand it.
app/src/views/vueMetaExample.vue
+
1
−
1
View file @
43eb7e87
...
...
@@ -22,7 +22,7 @@ export default {
name
:
'
Data
'
,
metaInfo
()
{
return
{
title
:
this
.
response
.
title
,
title
:
this
.
$route
.
params
.
title
,
meta
:
[
{
vmid
:
'
description
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets