Commit fffe12b2 authored by zhengke's avatar zhengke

优化数据源保存

parent c2e77148
......@@ -87,6 +87,7 @@
const sourceLoadingStore = useScreenStore()
const { slides, slideIndex } = storeToRefs(slidesStore)
const { setNewDatasList } = useEditor()
const { SourceLoading } = storeToRefs(useScreenStore())
watch(() => datas.DataSource.DataSourceOverlay, (n,o) => {
if(n){
......@@ -132,7 +133,7 @@
const OffDataSource = () =>{
datas.DataSource.DataSourceOverlay = !datas.DataSource.DataSourceOverlay
setNewDatasList(datas.DataSource)
if(SourceLoading.value) setNewDatasList(datas.DataSource)
}
......
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