浏览代码

fix paths to static resources

Falko Schindler 2 年之前
父节点
当前提交
ce62de6a3e
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      nicegui/templates/index.html

+ 6 - 6
nicegui/templates/index.html

@@ -2,14 +2,14 @@
 <html>
   <head>
     <title>NiceGUI</title>
-    <script src="static/socket.io.min.js"></script>
-    <link href="static/fonts.css" rel="stylesheet" type="text/css" />
-    <link href="static/quasar.prod.css" rel="stylesheet" type="text/css" />
-    <script src="static/tailwind.min.js"></script>
+    <script src="/static/socket.io.min.js"></script>
+    <link href="/static/fonts.css" rel="stylesheet" type="text/css" />
+    <link href="/static/quasar.prod.css" rel="stylesheet" type="text/css" />
+    <script src="/static/tailwind.min.js"></script>
   </head>
   <body>
-    <script src="static/vue.global.prod.js"></script>
-    <script src="static/quasar.umd.prod.js"></script>
+    <script src="/static/vue.global.prod.js"></script>
+    <script src="/static/quasar.umd.prod.js"></script>
 
     {{ vue_styles | safe }} {{ vue_html | safe }}
     <div id="app"></div>