路由跳转bug修改

This commit is contained in:
2026-10-10 09:39:51 +08:00
parent 3f3b5910b1
commit 16a18a49b9
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export function useRouterPush(inSetup = true) {
const meta = allRoutes.find(item => item.name === key)?.meta || null;
// 处理 my_initiatechange 路由,如果 id 存在,直接跳转
// 判断发起变更是否是编辑
if(key==='my_initiatechange' && route.value?.query?.id){
if(route.value?.name==='my_initiatechange' && route.value?.query?.id){
return
}
+1 -2
View File
@@ -683,8 +683,7 @@ onMounted(() => {
</div>
</div>
</div>
<div class="flex items-center justify-between border-t pt-3 mt-3">
<p class="text-xs text-slate-400">待归档 5 项:培训签到与考核记录、PSSR 检查记录(含现场照片)、验收报告与运行数据、更新后的 P&ID / 操作规程(受控最新版)、设备 / 联锁台账更新记录</p>
<div class="flex items-center justify-end border-t pt-3 mt-3">
<div class="flex gap-2">
<NButton size="small" @click="approvalDrawer = true">审批流程设置</NButton>
<NButton ghost size="small" @click="back">取消</NButton>