通过写死Static路径改善https适配

This commit is contained in:
mxr612 2025-03-05 07:27:04 +00:00
parent f2011039be
commit e1f804fbef
3 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>心尺 PsychoScales</title> <title>心尺 PsychoScales</title>
<link rel="stylesheet" href="{{ url_for('static', path='styles.css') }}"> <link rel="stylesheet" href="/static/styles.css">
</head> </head>
<body> <body>

View File

@ -1,18 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Result</title> <title>Result</title>
<link rel="stylesheet" href="{{ url_for('static', path='styles.css') }}"> <link rel="stylesheet" href="/static/styles.css">
</head> </head>
<body> <body>
<h1>{{ scale_title }} </h1> <h1>{{ scale_title }} </h1>
<!-- <h2>您的结果如下:</h2> --> <!-- <h2>您的结果如下:</h2> -->
<ul> <ul>
{% for key, value in responses.items() %} {% for key, value in responses.items() %}
<li>{{ key }}: 在 {{ranges[key][0]}} 到 {{ranges[key][1]}} 的量表中得分 {{ value }}</li> <li>{{ key }}: 在 {{ranges[key][0]}} 到 {{ranges[key][1]}} 的量表中得分 {{ value }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</body> </body>
</html> </html>

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ scale.title }}</title> <title>{{ scale.title }}</title>
<link rel="stylesheet" href="{{ url_for('static', path='styles.css') }}"> <link rel="stylesheet" href="/static/styles.css">
</head> </head>
<body> <body>