Theme issues solved. sandbox completed

This commit is contained in:
Bahadir Sofuoglu 2022-09-09 17:35:31 +03:00
parent e7d0839f9c
commit 53f89e68b7
10 changed files with 6597 additions and 459 deletions

View file

@ -8,7 +8,7 @@
<script>
import EventBus from '@/layouts/AppEventBus';
import NewsService from '@/service/NewsService';
import './public/themes/lara-light-blue/theme.css'
export default {
themeChangeListener: null,
newsActivate: null,
@ -22,7 +22,6 @@ export default {
this.newsService = new NewsService();
},
mounted() {
console.log(process.env)
this.newsActivate = () => {
this.newsService.fetchNews().then(data => {
this.$appState.announcement = data;
@ -43,6 +42,7 @@ export default {
this.themeChangeListener = (event) => {
console.log(this.$appState.theme);
const elementId = 'theme-link';
const linkElement = document.getElementById(elementId);
const cloneLinkElement = linkElement.cloneNode(true);