Commit fffe12b2 authored by zhengke's avatar zhengke

优化数据源保存

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