Leskov Oleg há 5 dias atrás
pai
commit
38cecf6bfe
1 ficheiros alterados com 2 adições e 3 exclusões
  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: ->