index.coffee 775 B

1234567891011121314151617181920212223242526272829
  1. # app/pages/NotFound/index.coffee
  2. # Добавление стилей страницы
  3. if globalThis.stylFns and globalThis.stylFns['app/pages/NotFound/index.styl']
  4. styleElement = document.createElement('style')
  5. styleElement.type = 'text/css'
  6. styleElement.textContent = globalThis.stylFns['app/pages/NotFound/index.styl']
  7. document.head.appendChild(styleElement)
  8. else
  9. log '⚠️ Стили страницы 404 не найдены'
  10. module.exports = {
  11. props:
  12. domainSettings:
  13. type: Object
  14. default: -> {}
  15. language:
  16. type: String
  17. default: 'ru'
  18. methods:
  19. goHome: ->
  20. @$router.push '/'
  21. goBack: ->
  22. @$router.back()
  23. render: (new Function '_ctx', '_cache', globalThis.renderFns['app/pages/NotFound/index.pug'])()
  24. }