diff --git a/frontend/src/views/MaterialManage.vue b/frontend/src/views/MaterialManage.vue index e6a18ae..cc41fbc 100644 --- a/frontend/src/views/MaterialManage.vue +++ b/frontend/src/views/MaterialManage.vue @@ -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()