Leskov Oleg 5 일 전
부모
커밋
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: ->