File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <main : class =" [` page page-${tag}`] " >
2
+ <main class =" page page-signup " >
3
3
<div id =" section-signup" >
4
4
<div class =" grid-center-noGutter" >
5
5
<div class =" col-8_sm-12" >
22
22
</template >
23
23
24
24
<script setup>
25
+
25
26
// ======================================================================== Data
26
- const tag = ' signup'
27
- const { data } = await useAsyncData ( async () => {
27
+ const generalStore = useGeneralStore ()
28
+ const { $GetSeo , $CompileSeo } = useNuxtApp ()
29
+ const { data } = await useAsyncData (' core' , async () => {
28
30
return queryContent (' core' ).find ()
29
31
})
30
32
33
+ // ==================================================================== Watchers
34
+ watch (data, async (val ) => {
35
+ await generalStore .getBaseData (' general' )
36
+ await generalStore .getBaseData ({ key: ' signup' , data: val .find ((item ) => item ._file === ' core/signup.json' ) })
37
+ useHead ($CompileSeo ($GetSeo (' general' , ' signup' )))
38
+ }, { immediate: true })
39
+
31
40
// ==================================================================== Computed
32
41
const content = computed (() => {
33
42
const signup = data ._rawValue .find ((item ) => item ._file === ' core/signup.json' )
You can’t perform that action at this time.
0 commit comments