fix:模板地址修改
This commit is contained in:
parent
9c894d2904
commit
fde5593a8a
|
|
@ -245,8 +245,10 @@ const isEdit = ref(false)
|
||||||
const currentId = ref(null)
|
const currentId = ref(null)
|
||||||
const uploading = ref(false)
|
const uploading = ref(false)
|
||||||
const importing = ref(false)
|
const importing = ref(false)
|
||||||
const apiBaseUrl = (import.meta.env.VITE_API_BASE_URL || '/api').replace(/\/$/, '')
|
// const apiBaseUrl = (import.meta.env.VITE_API_BASE_URL).replace(/\/api$/, "");
|
||||||
const templateDownloadUrl = `${apiBaseUrl}/material/template/`
|
// const templateDownloadUrl = `${apiBaseUrl}/media/material_import_template.xlsx`
|
||||||
|
const templateDownloadUrl = `http://101.42.1.64:2260/media/material_import_template.xlsx`
|
||||||
|
|
||||||
|
|
||||||
const filters = reactive({
|
const filters = reactive({
|
||||||
name: '',
|
name: '',
|
||||||
|
|
@ -528,6 +530,7 @@ const onPageSizeChange = (size) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
console.log('templateDownloadUrl', templateDownloadUrl)
|
||||||
loadChoices()
|
loadChoices()
|
||||||
loadCategories()
|
loadCategories()
|
||||||
loadSubcategories()
|
loadSubcategories()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue