提交 5ff93b8b authored 作者: lidongxu's avatar lidongxu

Merge branch 'release' into dev

...@@ -62,7 +62,7 @@ const props = defineProps({ ...@@ -62,7 +62,7 @@ const props = defineProps({
} }
}) })
const emit = defineEmits(['update:modelValue']); const emit = defineEmits(['update:modelValue', 'confirm']);
const dialogVisible = ref(props.modelValue); const dialogVisible = ref(props.modelValue);
const showVersionList = ref(props.versionList.map((o) => o.title)) const showVersionList = ref(props.versionList.map((o) => o.title))
......
...@@ -108,6 +108,8 @@ const nowVersion = ref('') // 当前最新版本 ...@@ -108,6 +108,8 @@ const nowVersion = ref('') // 当前最新版本
// 判断是否有新版本出现(监听 pinia 值的变化) // 判断是否有新版本出现(监听 pinia 值的变化)
watch(() => versionStore.version, (newVal, oldVal) => { watch(() => versionStore.version, (newVal, oldVal) => {
const oldVersion = proxy.$cache.local.get('version') const oldVersion = proxy.$cache.local.get('version')
const versionObj = versionStore.version[0]
nowVersion.value = versionObj.version
if (oldVersion !== nowVersion.value) { if (oldVersion !== nowVersion.value) {
handleVersionList() handleVersionList()
} }
...@@ -120,6 +122,7 @@ const showVersionFn = () => { ...@@ -120,6 +122,7 @@ const showVersionFn = () => {
// 处理版本通知数据结构 // 处理版本通知数据结构
const handleVersionList = () => { const handleVersionList = () => {
console.log(versionStore)
const versionObj = versionStore.version[0] const versionObj = versionStore.version[0]
nowVersion.value = versionObj.version nowVersion.value = versionObj.version
showVersionNoticeVisible.value = true showVersionNoticeVisible.value = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论