fix: 修复提示问题
This commit is contained in:
parent
ae3761349a
commit
b18da6b21e
@ -64,6 +64,7 @@ import useStore from '@/stores'
|
|||||||
const { dataset, document } = useStore()
|
const { dataset, document } = useStore()
|
||||||
const baseInfo = computed(() => dataset.baseInfo)
|
const baseInfo = computed(() => dataset.baseInfo)
|
||||||
const webInfo = computed(() => dataset.webInfo)
|
const webInfo = computed(() => dataset.webInfo)
|
||||||
|
const documentsFiles = computed(() => dataset.documentsFiles)
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@ -141,7 +142,7 @@ function submit() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function back() {
|
function back() {
|
||||||
if (baseInfo.value || webInfo.value || StepSecondRef.value?.paragraphList?.length > 0) {
|
if (baseInfo.value || webInfo.value || documentsFiles.value?.length > 0) {
|
||||||
MsgConfirm(`提示`, `当前的更改尚未保存,确认退出吗?`, {
|
MsgConfirm(`提示`, `当前的更改尚未保存,确认退出吗?`, {
|
||||||
confirmButtonText: '确认',
|
confirmButtonText: '确认',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user