bug处理,插件版本同步

This commit is contained in:
2026-07-15 16:36:20 +08:00
parent 0911760e27
commit bf84da7783
12 changed files with 707 additions and 303 deletions
+20 -1
View File
@@ -317,6 +317,24 @@ onMounted(async () => {
sessionStorage.removeItem('wizardStep')
}
// 刷新后检测插件是否在线
const needCheck = sessionStorage.getItem('wizardCheckPlug')
if (needCheck) {
sessionStorage.removeItem('wizardCheckPlug')
// 立即打开弹窗
showInstallDialog.value = true
// 等待心跳检测完成(最多等 3.5 秒)
await new Promise(resolve => setTimeout(resolve, 3500))
if (store.state.plugIsOnline) {
// 插件在线,关闭弹窗并直接进入下一步
showInstallDialog.value = false
handleNext()
} else {
// 插件离线,弹窗保持展示 + 提示
ElMessage.warning('未检测到插件安装')
}
}
if (!store.state.regions.length) store.dispatch('loadCommonData')
store.dispatch('loadJobIntention')
await loadProfile()
@@ -665,9 +683,10 @@ function handleInstallConfirm() {
showInstallDialog.value = true
}
/** 点击"已安装,继续":保存步骤 + 刷新页面 */
/** 点击"已安装,继续":保存步骤 + 标记需要检测 + 刷新页面 */
function handleInstallConfirmReload() {
sessionStorage.setItem('wizardStep', String(currentStep.value))
sessionStorage.setItem('wizardCheckPlug', '1')
location.reload()
}