Skip to content

Commit

Permalink
Fix evrimagaci#18; bileşikler panelinin bazen gözükmeme sorunu çözüldü
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugday committed Jan 16, 2022
1 parent 3e693dd commit de14c4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ import RightSideBar from '../components/RightSideBar'
export default {
components: { SideBar, RightSideBar, Slider, PElement },
asyncData({ error, params, app, store, req }) {
if (req) {
const md = new MobileDetect(req.headers['user-agent'])
store.commit('SET_IS_MOBILE', md.mobile() || md.tablet() || md.phone())
}
return app.$axios
.get(`/api/elements`)
.then(({ data }) => {
Expand All @@ -146,6 +142,10 @@ export default {
return error({ statusCode: 404, message: err })
})
},
beforeMount(){
const md = new MobileDetect(req.headers['user-agent'])
store.commit('SET_IS_MOBILE', md.mobile() || md.tablet() || md.phone())
},
data() {
return {
visible: false,
Expand Down

0 comments on commit de14c4a

Please sign in to comment.