fix: poster save bug

This commit is contained in:
ShawnPhang 2024-04-19 11:28:06 +08:00
parent aaf6605ac6
commit 61ee995313

View File

@ -3,7 +3,7 @@
* @Date: 2022-01-12 11:26:53
* @Description: 顶部操作按钮组
* @LastEditors: ShawnPhang <https://m.palxp.cn>
* @LastEditTime: 2024-04-18 17:13:24
* @LastEditTime: 2024-04-19 11:22:40
-->
<template>
<div class="top-title"><el-input v-model="state.title" placeholder="未命名的设计" class="input-wrap" /></div>
@ -78,7 +78,7 @@ const historyStore = useHistoryStore()
const { dPage } = storeToRefs(pageStore)
const { tempEditing } = storeToRefs(userStore)
const { dWidgets } = storeToRefs(widgetStore)
const { dHistory, dPageHistory } = storeToRefs(useHistoryStore())
const { dHistoryStack } = storeToRefs(useHistoryStore())
const state = reactive<TState>({
@ -90,8 +90,8 @@ const state = reactive<TState>({
//
async function save(hasCover: boolean = false) {
// Bugs: page proxy?.dPageHistory
if (dHistory.value.length <= 0) {
//
if (dHistoryStack.value.changes.length <= 0) {
return
}
controlStore.setShowMoveable(false) //