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
e5dcdaf1
Commit
e5dcdaf1
authored
Nov 30, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复currentSlide.value.background 的bug
parent
6216312c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
index.vue
src/views/Editor/EditorHeader/index.vue
+6
-6
index.vue
src/views/Editor/Thumbnails/index.vue
+2
-1
SlideDesignPanel.vue
src/views/Editor/Toolbar/SlideDesignPanel.vue
+1
-1
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
e5dcdaf1
...
...
@@ -286,6 +286,12 @@ const SetTripTemplateConfig = async () => {
// 保存
const
setTemplate
=
async
()
=>
{
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
slides
.
value
))
arr
.
forEach
(
x
=>
{
x
.
elements
.
forEach
(
y
=>
{
delete
y
.
TemplateList
delete
y
.
TemplateDataSource
})
})
if
(
ConfigId
.
value
&&
FeatureImg
.
value
.
length
>
0
){
FeatureImg
.
value
.
forEach
(
item
=>
{
setTimeout
(()
=>
{
...
...
@@ -298,12 +304,6 @@ const setTemplate = async () =>{
}
// console.log(JSON.stringify(slides.value),'----保存接口',queryObj.value)
if
(
model
.
value
&&
userInfo
.
value
.
IsEditTripTemplate
==
1
){
arr
.
forEach
(
x
=>
{
x
.
elements
.
forEach
(
y
=>
{
delete
y
.
TemplateList
delete
y
.
TemplateDataSource
})
})
if
(
CoverImg
&&
CoverImg
.
value
)
queryObj
.
value
.
CoverImg
=
CoverImg
.
value
else
{
mainStore
.
setToolbarState
(
ToolbarStates
.
EL_TEMPLATEDATA
)
...
...
src/views/Editor/Thumbnails/index.vue
View file @
e5dcdaf1
...
...
@@ -70,7 +70,7 @@ const slidesStore = useSlidesStore()
const
layoutsStore
=
useSlidesStore
()
const
keyboardStore
=
useKeyboardStore
()
const
{
selectedSlidesIndex
:
_selectedSlidesIndex
,
thumbnailsFocus
}
=
storeToRefs
(
mainStore
)
const
{
slides
,
slideIndex
,
layoutSlides
}
=
storeToRefs
(
slidesStore
)
const
{
slides
,
currentSlide
,
slideIndex
,
layoutSlides
}
=
storeToRefs
(
slidesStore
)
const
{
ctrlKeyState
,
shiftKeyState
}
=
storeToRefs
(
keyboardStore
)
const
{
slidesLoadLimit
}
=
useLoadSlides
()
...
...
@@ -236,6 +236,7 @@ const GetTripTemplate = async () =>{
queryObj
.
value
.
ColorName
=
dataRes
.
data
.
data
.
ColorName
queryObj
.
value
.
ColorStr
=
dataRes
.
data
.
data
.
ColorStr
queryObj
.
value
.
TempType
=
dataRes
.
data
.
data
.
TempType
slidesStore
.
updateSlideIndex
(
0
)
if
(
ConfigId
.
value
==
0
)
return
await
GetTripFiledData
(
1
)
}
...
...
src/views/Editor/Toolbar/SlideDesignPanel.vue
View file @
e5dcdaf1
...
...
@@ -335,7 +335,7 @@ const { slides, currentSlide, viewportRatio, theme, slideIndex } = storeToRefs(s
const
moreThemeConfigsVisible
=
ref
(
false
)
const
background
=
computed
(()
=>
{
if
(
!
currentSlide
.
value
.
background
)
{
if
(
!
currentSlide
.
value
||!
currentSlide
.
value
.
background
)
{
return
{
type
:
'solid'
,
value
:
'#fff'
,
...
...
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