通过写死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 name="viewport" content="width=device-width, initial-scale=1.0">
<title>心尺 PsychoScales</title>
<link rel="stylesheet" href="{{ url_for('static', path='styles.css') }}">
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>

View File

@ -1,18 +1,21 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Result</title>
<link rel="stylesheet" href="{{ url_for('static', path='styles.css') }}">
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
<h1>{{ scale_title }} </h1>
<!-- <h2>您的结果如下:</h2> -->
<ul>
{% 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 %}
</ul>
</body>
</html>

View File

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