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

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) let firstRoute = getFirstRoute(navTabs.state.tabsViewRoutes)
if (firstRoute) routePush(firstRoute.path) if (firstRoute) routePush(firstRoute.path)

View File

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

View File

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