支持HTTPS协议

This commit is contained in:
syruan 2025-02-25 18:15:42 +08:00
parent 0427e23fbf
commit 1109919370
2 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ const downloadContract = () => {
//
const downloadAnnex = async () => {
const baseUrl = window.location.origin;
const baseUrl = window.location.origin.replace(/^http:/, 'https:'); // HTTP HTTPS
const fileUrl = `${baseUrl}/contract-annex.docx`;
try {

View File

@ -733,7 +733,7 @@ const downloadContract = () => {
//
const downloadAnnex = async () => {
const baseUrl = window.location.origin;
const baseUrl = window.location.origin.replace(/^http:/, 'https:'); // HTTP HTTPS
const fileUrl = `${baseUrl}/contract-annex.docx`;
try {