Commit 6216312c authored by zhengke's avatar zhengke

优化上传路径

parent 1f297b3b
......@@ -50,7 +50,7 @@ const userLoginHandler = async ()=>{
let param = query()
let userId = 1
let ConfigId = 0 // 9117
let model = 1
let model = 0
if(param.uid) userId=parseInt(param.uid)
if(param.ConfigId) ConfigId=parseInt(param.ConfigId)
if(param.model) model=parseInt(param.model)
......
......@@ -26,7 +26,7 @@ export const useScreenStore = defineStore('screen', {
ConfigId: 0,
TemplateType: [], // 数据源分类
TemplateDataSource: [], // 所有数据源
TempId: 0,
TempId: 0, // 模版Id
CoverImg: null, // 封面图
isCoverImg: false, // 封面
dataLoading: false, // 记录保存是否成功
......
......@@ -6,7 +6,7 @@ export const domainManager = () => {
//上传站点
UploadUrl: locationName.indexOf('oytour') !== -1 ? "http://upload.oytour.com" : "http://192.168.10.214:8120",
//文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 ? "http://imgfile.oytour.com/" : 'http://192.168.10.214:8130',
ViittoFileUrl: locationName.indexOf('oytour') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.10.214:8130',
}
return obj
}
\ No newline at end of file
......@@ -335,20 +335,6 @@ const setTemplate = async () =>{
type: 'warning',
})
}
// for(let j=0;j<slides.value[i].elements.length;j++){
// if(model.value&&userInfo.value.IsEditTripTemplate==1){
// if(slides.value[i].elements[j].type=="text"||slides.value[i].elements[j].type=="image"){
// if(!slides.value[i].elements[j].TemplateDataSource
// ||!slides.value[i].elements[j].TemplateDataSource.Id) {
// return ElMessage({
// showClose: true,
// message: `请完善 第 ${i+1} 页 需要绑定的数据源`,
// type: 'warning',
// })
// }
// }
// }
// }
}
datas.loading = true
if(model.value&&userInfo.value.IsEditTripTemplate==1){
......@@ -361,7 +347,6 @@ const setTemplate = async () =>{
// 上传文件
const setFeatureImgList = async (url) => {
// if(!ConfigId.value) return
try {
let queryObj = {
MyFile: url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment