mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 10:46:35 +00:00
[fix]修复路径引用问题
This commit is contained in:
@@ -74,7 +74,8 @@ export default {
|
|||||||
return this.url
|
return this.url
|
||||||
},
|
},
|
||||||
downloadImportTempUrl() {
|
downloadImportTempUrl() {
|
||||||
return process.env.VUE_APP_BASE_API + this.url + '?format=csv&template=import&limit=1'
|
const baseUrl = (process.env.VUE_APP_ENV === 'production') ? (`${this.url}`) : (`${process.env.VUE_APP_BASE_API}${this.url}`)
|
||||||
|
return baseUrl + '?format=csv&template=import&limit=1'
|
||||||
},
|
},
|
||||||
uploadHelpTextClass() {
|
uploadHelpTextClass() {
|
||||||
const cls = ['el-upload__tip']
|
const cls = ['el-upload__tip']
|
||||||
@@ -161,8 +162,8 @@ export default {
|
|||||||
resources.push(data[index].id)
|
resources.push(data[index].id)
|
||||||
}
|
}
|
||||||
const spm = await createSourceIdCache(resources)
|
const spm = await createSourceIdCache(resources)
|
||||||
const BaseUrl = (process.env.VUE_APP_ENV === 'production') ? (`${this.url}`) : (`${process.env.VUE_APP_BASE_API}${this.url}`)
|
const baseUrl = (process.env.VUE_APP_ENV === 'production') ? (`${this.url}`) : (`${process.env.VUE_APP_BASE_API}${this.url}`)
|
||||||
const url = `${BaseUrl}?format=csv&template=update&spm=` + spm.spm
|
const url = `${baseUrl}?format=csv&template=update&spm=` + spm.spm
|
||||||
return this.downloadCsv(url)
|
return this.downloadCsv(url)
|
||||||
},
|
},
|
||||||
async handleImportConfirm() {
|
async handleImportConfirm() {
|
||||||
|
Reference in New Issue
Block a user