fix:模板地址修改
This commit is contained in:
parent
9c894d2904
commit
fde5593a8a
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue