bug处理,插件版本同步
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user