File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,12 @@ export default defineComponent({
61
61
data: {},
62
62
};
63
63
},
64
- created() {
65
- this .getData ().catch ((err ) => console .error (err ));
64
+ async created() {
65
+ try {
66
+ await this .getData ();
67
+ } catch (error ) {
68
+ console .error (error );
69
+ }
66
70
},
67
71
methods: {
68
72
async getData() {
@@ -85,9 +89,13 @@ export default defineComponent({
85
89
},
86
90
},
87
91
mounted() {
88
- onEntryChange (() => {
92
+ onEntryChange (async () => {
89
93
if (process .env .VUE_APP_CONTENTSTACK_LIVE_PREVIEW === ' true' ) {
90
- this .getData ().catch ((err ) => console .error (err ));
94
+ try {
95
+ await this .getData ();
96
+ } catch (error ) {
97
+ console .error (error );
98
+ }
91
99
}
92
100
});
93
101
},
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ interface Locale {
74
74
75
75
import { defineComponent , PropType } from ' vue' ;
76
76
import HeroBanner from ' ../components/HeroBanner.vue' ;
77
- import BlogBanner from " ..// components/BlogBanner.vue" ;
77
+ import BlogBanner from " ../components/BlogBanner.vue" ;
78
78
import SectionComponent from ' ../components/SectionContent.vue' ;
79
79
import SectionWithCards from ' ../components/SectionWithCards.vue' ;
80
80
import AboutSectionBucket from ' ../components/AboutSectionBucket.vue' ;
You can’t perform that action at this time.
0 commit comments