支持HTTPS协议
This commit is contained in:
parent
0427e23fbf
commit
1109919370
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue