yangfeng
2023-09-15 12e5839f8b2b958cbd3e0047ee5f9873ff65495d
src/router/index.js
@@ -97,7 +97,12 @@
const router = createRouter()
router.afterEach((to, from, next) => {
  if ((to.path === "/overview/overviewList" || to.path === "/reportForm/inOutboundDetail") && to.query.name) {
  if (
    (to.path === "/overview/overviewList" ||
      to.path === "/reportForm/inOutboundDetail" ||
      to.path === "/productManage/productList") &&
    to.query.name
  ) {
    console.log(from, next)
    to.meta.title = to.query.name
    document.title = to.meta.title