Leskov Oleg 5 өдөр өмнө
parent
commit
38cecf6bfe
1 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 2 3
      app/app.coffee

+ 2 - 3
app/app.coffee

@@ -11,7 +11,8 @@ document.head.insertAdjacentHTML('beforeend', '<style type="text/tailwindcss" fi
 document.head.insertAdjacentHTML('beforeend', '<style type="text/tailwindcss" file="app/DesignTokens.styl">' + stylFns['app/DesignTokens.styl'] + '</style>')
 document.head.insertAdjacentHTML('beforeend', '<style type="text/tailwindcss" file="app/app.styl">' + stylFns['app/app.styl'] + '</style>')
 
-
+globalThis.AppDB = new (require 'app/utils/AppDB')()
+await globalThis.AppDB.init()
 
 # Маршруты
 routes = [
@@ -33,8 +34,6 @@ globalThis.app = Vue.createApp
         }
     
     beforeMount: ->
-        globalThis.AppDB = new (require 'app/utils/AppDB')()
-        await globalThis.AppDB.init()
         globalThis._ = @
     computed:
         currentLanguage: ->