Skip to content

Commit

Permalink
fix(router)hide router temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry authored and kerry-emqx committed Dec 17, 2021
1 parent 83d19f2 commit 0141650
Showing 1 changed file with 70 additions and 70 deletions.
140 changes: 70 additions & 70 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import GatewayDetailListener from "@/views/Gateway/components/listeners.vue";
import GatewayDetailAuth from "@/views/Gateway/components/auth.vue";
import GatewayDetailClients from "@/views/Gateway/components/clients.vue";
import GatewayCreate from "@/views/Gateway/GatewayCreate.vue";
import IoT from "@/views/RuleEngine/IoT/IoT.vue";
import IoTCreate from "@/views/RuleEngine/IoT/IoTCreate.vue";
import Bridge from "@/views/RuleEngine/Bridge/DataBridge.vue";
import BridgeCreate from "@/views/RuleEngine/Bridge/BridgeCreate.vue";
import BridgeConnector from "@/views/RuleEngine/Connector/Connector.vue";
import ConnectorCreate from "@/views/RuleEngine/Connector/ConnectorCreate.vue";
import BridgeDetail from "@/views/RuleEngine/Bridge/BridgeDetail.vue";
// import IoT from "@/views/RuleEngine/IoT/IoT.vue";
// import IoTCreate from "@/views/RuleEngine/IoT/IoTCreate.vue";
// import Bridge from "@/views/RuleEngine/Bridge/DataBridge.vue";
// import BridgeCreate from "@/views/RuleEngine/Bridge/BridgeCreate.vue";
// import BridgeConnector from "@/views/RuleEngine/Connector/Connector.vue";
// import ConnectorCreate from "@/views/RuleEngine/Connector/ConnectorCreate.vue";
// import BridgeDetail from "@/views/RuleEngine/Bridge/BridgeDetail.vue";
import APIKey from "@/views/APIKey/APIKey.vue";

export const routes: Array<RouteRecordRaw> = [
Expand Down Expand Up @@ -302,69 +302,69 @@ export const routes: Array<RouteRecordRaw> = [
},
],
},
//iot
{
path: "/iot",
component: Layout,
meta: {
hideKey: "iot",
authRequired: true,
},
children: [
{
path: "",
name: "iot",
component: IoT,
},
{
path: "create",
name: "iot-create",
component: IoTCreate,
},
],
},
//bridge
{
path: "/bridge",
component: Layout,
redirect: "/bridge/dataBridge",
meta: {
hideKey: "bridge",
authRequired: true,
subMenu: true,
},
children: [
{
path: "dataBridge",
name: "data-bridge",
component: Bridge,
children: [
{
path: "create",
name: "bridge-create",
component: BridgeCreate,
},
{
path: "detail/:id",
name: "bridge-detail",
component: BridgeDetail,
},
],
},
{
path: "connector",
name: "bridge-connector",
component: BridgeConnector,
children: [
{
path: "create",
name: "connector-create",
component: ConnectorCreate,
},
],
},
],
},
// //iot
// {
// path: "/iot",
// component: Layout,
// meta: {
// hideKey: "iot",
// authRequired: true,
// },
// children: [
// {
// path: "",
// name: "iot",
// component: IoT,
// },
// {
// path: "create",
// name: "iot-create",
// component: IoTCreate,
// },
// ],
// },
// //bridge
// {
// path: "/bridge",
// component: Layout,
// redirect: "/bridge/dataBridge",
// meta: {
// hideKey: "bridge",
// authRequired: true,
// subMenu: true,
// },
// children: [
// {
// path: "dataBridge",
// name: "data-bridge",
// component: Bridge,
// children: [
// {
// path: "create",
// name: "bridge-create",
// component: BridgeCreate,
// },
// {
// path: "detail/:id",
// name: "bridge-detail",
// component: BridgeDetail,
// },
// ],
// },
// {
// path: "connector",
// name: "bridge-connector",
// component: BridgeConnector,
// children: [
// {
// path: "create",
// name: "connector-create",
// component: ConnectorCreate,
// },
// ],
// },
// ],
// },
{
path: "/advanced",
component: Layout,
Expand Down

0 comments on commit 0141650

Please sign in to comment.