通讯链路:修改退出表格后返回首页问题
This commit is contained in:
parent
a837233c5d
commit
ba397c05af
@ -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)
|
||||||
|
@ -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'),
|
||||||
},
|
},
|
||||||
|
@ -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(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user