模板修改
build / build (push) Successful in 1m57s

This commit is contained in:
wanghu
2026-10-19 10:49:24 +08:00
parent 224a63ce87
commit c17604b019
2 changed files with 4 additions and 5 deletions
+4 -5
View File
@@ -125,13 +125,12 @@ class WorkPlanApi {
}
/**
* Excel 导入模板直链(public 静态资源)。
* 文件名必须 ASCII:window.open/fetch 的导航请求在 vite dev 会被 spa fallback
* 改写到 index.html,中文名还会踩 zip 打包/网关的编码坑;下载时由
* <a download> 指定中文显示名(见 WeekPlan.downloadTemplate)。
* Excel 导入模板直链(public 静态资源,文件名即下载地址)。
* 不能用 window.open 直链导航下载(见 WeekPlan.downloadTemplate 注释);
* 下载时由 fetch + <a download> 落盘(见 WeekPlan.downloadTemplate)。
*/
templateUrl() {
return `${import.meta.env.BASE_URL || "/"}workplan-import-template.xls`;
return `${import.meta.env.BASE_URL || "/"}工作安排导入模板.xls`;
}
}