Cis App: define isMobile local since it is used in handleClick event handler

This commit is contained in:
Harald Bamberger
2026-07-08 10:53:40 +02:00
parent c69bb9ccaa
commit fe195f4080
+6 -1
View File
@@ -257,9 +257,14 @@ const app = Vue.createApp({
provide() {
return { // provide injectable & watchable language property
language: Vue.computed(() => this.$p.user_language),
isMobile: Vue.computed(() => this.windowWidth < 767),
isMobile: Vue.computed(() => this.isMobile),
}
},
computed: {
isMobile: function() {
return (this.windowWidth < 767);
}
},
methods: {
isInternalRoute(href) {
const internalBase = window.location.origin