Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
6216312c
Commit
6216312c
authored
Nov 30, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化上传路径
parent
1f297b3b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
18 deletions
+3
-18
App.vue
src/App.vue
+1
-1
screen.ts
src/store/screen.ts
+1
-1
domainManager.ts
src/utils/domainManager.ts
+1
-1
index.vue
src/views/Editor/EditorHeader/index.vue
+0
-15
No files found.
src/App.vue
View file @
6216312c
...
...
@@ -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
)
...
...
src/store/screen.ts
View file @
6216312c
...
...
@@ -26,7 +26,7 @@ export const useScreenStore = defineStore('screen', {
ConfigId
:
0
,
TemplateType
:
[],
// 数据源分类
TemplateDataSource
:
[],
// 所有数据源
TempId
:
0
,
TempId
:
0
,
// 模版Id
CoverImg
:
null
,
// 封面图
isCoverImg
:
false
,
// 封面
dataLoading
:
false
,
// 记录保存是否成功
...
...
src/utils/domainManager.ts
View file @
6216312c
...
...
@@ -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
src/views/Editor/EditorHeader/index.vue
View file @
6216312c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment