yangfeng
2023-09-22 fbdb1d15b6cf692d27598806eee6be6f16e1f36d
src/router/index.js
@@ -97,12 +97,7 @@
const router = createRouter()
router.afterEach((to, from, next) => {
  if (
    (to.path === "/overview/overviewList" ||
      to.path === "/reportForm/inOutboundDetail" ||
      to.path === "/productManage/productList") &&
    to.params.name
  ) {
  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