|
@@ -32,7 +32,7 @@ const routes: Array<RouteConfig> = [
|
|
|
component: () => import("@/views/mapdata.vue"),
|
|
|
},
|
|
|
];
|
|
|
-
|
|
|
+//console.log("penv4", process.env.BASE_URL);
|
|
|
const router = new VueRouter({
|
|
|
mode: "history",
|
|
|
base: process.env.BASE_URL,
|
|
@@ -41,7 +41,7 @@ const router = new VueRouter({
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
// canUserAccess() 返回 `true` 或 `false`
|
|
|
- console.log("to", to);
|
|
|
+ //console.log("to", to);
|
|
|
var projectId = to.query.projectId || "";
|
|
|
projectId && store.commit("setProjectId", projectId);
|
|
|
next();
|