yangfeng
2023-10-18 a11d38dff8d7beca6d33251557b7e370c155faf1
src/router/index.js
@@ -109,12 +109,13 @@
const router = createRouter()
router.afterEach((to, from, next) => {
  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 === "inOutboundDetail") {
    to.meta.title = to.params.name + "/出入库明细"
  } else if (to.name === "inboundOutboundDetail") {
    to.meta.title = "出入库明细"
    document.title = to.meta.title
  }
})