yangfeng
2023-09-28 101ae06a200c513fcf3be01d047b310af7660b6c
src/router/index.js
@@ -109,13 +109,13 @@
const router = createRouter()
router.afterEach((to, from, next) => {
  console.log(to,"to")
  console.log(to, "to")
  if ((to.path === "/overview/overviewList" || to.path === "/productManage/productList") && to.params.name) {
    console.log(from, next)
    to.meta.title = to.params.name
    document.title = to.meta.title
  } else if (to.name === "inboundOutboundDetail") {
    to.meta.title = to.params.name + "/出入库明细"
    to.meta.title = "出入库明细"
    document.title = to.meta.title
  }
})