fix:模板地址修改

This commit is contained in:
shijing 2026-03-20 10:44:14 +08:00
parent 9c894d2904
commit fde5593a8a
1 changed files with 5 additions and 2 deletions

View File

@ -245,8 +245,10 @@ const isEdit = ref(false)
const currentId = ref(null)
const uploading = ref(false)
const importing = ref(false)
const apiBaseUrl = (import.meta.env.VITE_API_BASE_URL || '/api').replace(/\/$/, '')
const templateDownloadUrl = `${apiBaseUrl}/material/template/`
// const apiBaseUrl = (import.meta.env.VITE_API_BASE_URL).replace(/\/api$/, "");
// const templateDownloadUrl = `${apiBaseUrl}/media/material_import_template.xlsx`
const templateDownloadUrl = `http://101.42.1.64:2260/media/material_import_template.xlsx`
const filters = reactive({
name: '',
@ -528,6 +530,7 @@ const onPageSizeChange = (size) => {
}
onMounted(() => {
console.log('templateDownloadUrl', templateDownloadUrl)
loadChoices()
loadCategories()
loadSubcategories()