通讯链路:修改退出表格后返回首页问题

This commit is contained in:
高云鹏 2024-08-03 00:57:45 +08:00
parent a837233c5d
commit ba397c05af
3 changed files with 9 additions and 10 deletions

View File

@ -385,6 +385,9 @@ const init = () => {
}
}
if (router.currentRoute.value.query?.stopToFirstRoute) {
return
}
//
let firstRoute = getFirstRoute(navTabs.state.tabsViewRoutes)
if (firstRoute) routePush(firstRoute.path)

View File

@ -66,7 +66,7 @@ const staticRoutes: Array<RouteRecordRaw> = [
},
},
{
path: '/univer',
path: adminBaseRoutePath + '/univer',
name: 'univer',
component: () => import('/@/views/backend/node/univer.vue'),
},

View File

@ -365,7 +365,7 @@ const tipsPos = reactive({
const saveExcelData = () => {
const data = getData()
const val = createUpLoadExcelData(data)
console.log(val);
console.log(val)
saveMappingList(val)
}
@ -398,7 +398,7 @@ const getMappingList = () => {
data.forEach((item) => {
result = { ...result, ...item }
})
console.log(result);
console.log(result)
return result
})
@ -467,11 +467,7 @@ const resetExcel = () => {
}
const goToNodePage = () => {
router.push({ path: route.query.prevPath as string })
// console.log(router.getRoutes());
// router.go(-1)
router.push({ path: route.query.prevPath as string, query: { stopToFirstRoute: 1 } })
}
onMounted(() => {