update 动态标签名称

This commit is contained in:
2023-03-11 15:29:55 +08:00
parent bd2fb1c451
commit 4872876afc
2 changed files with 2 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ export const constantRoutes = [
hidden: true, hidden: true,
children: [ children: [
{ {
path: "index/:id", path: "index/:id/:stationName",
component: () => import("@/views/pile/station/detail"), component: () => import("@/views/pile/station/detail"),
name: "stationDetail", name: "stationDetail",
meta: { title: "充电站详情", activeMenu: "/station/station" }, meta: { title: "充电站详情", activeMenu: "/station/station" },

View File

@@ -67,6 +67,7 @@ export default {
}, },
created() { created() {
// console.log(this.stationId, "充电桩详情 create"); // console.log(this.stationId, "充电桩详情 create");
// const stationId = this.stationId;
const stationName = this.stationName; const stationName = this.stationName;
const title = "【" + stationName + "】站点详情"; const title = "【" + stationName + "】站点详情";
const route = Object.assign({}, this.$route, { title: `${title}` }) const route = Object.assign({}, this.$route, { title: `${title}` })