浏览代码

fix name of Vue component (fixes #1887)

Falko Schindler 1 年之前
父节点
当前提交
859f85fd77
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/dependencies.py

+ 1 - 1
nicegui/dependencies.py

@@ -64,7 +64,7 @@ def register_vue_component(path: Path) -> Component:
         if key in vue_components and vue_components[key].path == path:
             return vue_components[key]
         assert key not in vue_components, f'Duplicate VUE component {key}'
-        v = vbuild.VBuild(name, path.read_text())
+        v = vbuild.VBuild(path.name, path.read_text())
         vue_components[key] = VueComponent(key=key, name=name, path=path, html=v.html, script=v.script, style=v.style)
         return vue_components[key]
     if path.suffix == '.js':