Browse Source

fixed joystick behind reverse-proxy

Rodja Trappe 2 năm trước cách đây
mục cha
commit
6e83878da8
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      nicegui/ui.py
  2. 1 1
      nicegui/vue.py

+ 1 - 1
nicegui/ui.py

@@ -18,7 +18,7 @@ from .elements.icon import Icon as icon
 from .elements.image import Image as image
 from .elements.input import Input as input
 from .elements.interactive_image import InteractiveImage as interactive_image
-#from .elements.joystick import Joystick as joystick
+from .elements.joystick import Joystick as joystick
 from .elements.keyboard import Keyboard as keyboard
 from .elements.label import Label as label
 from .elements.link import Link as link

+ 1 - 1
nicegui/vue.py

@@ -44,7 +44,7 @@ def generate_js_imports(prefix: str) -> str:
         if name in globals.excludes:
             continue
         for path in js_dependencies[name]:
-            result += f'import "_vue/dependencies/{path}";\n'
+            result += f'import "{prefix}/_vue/dependencies/{path}";\n'
     for name, path in js_components.items():
         if name in globals.excludes:
             continue