yangfeng
2023-09-21 8d0ee0a2c32c7a99afc01b0a0c795d708a9b7955
src/router/index.js
@@ -97,9 +97,14 @@
const router = createRouter()
router.afterEach((to, from, next) => {
  if (to.path === "/overview/overviewList" && to.query.name) {
  if (
    (to.path === "/overview/overviewList" ||
      to.path === "/reportForm/inOutboundDetail" ||
      to.path === "/productManage/productList") &&
    to.params.name
  ) {
    console.log(from, next)
    to.meta.title = to.query.name
    to.meta.title = to.params.name
    document.title = to.meta.title
  }
})