feat(XPack): 前端XPack
This commit is contained in:
parent
85d6b34bdb
commit
d040b2c3e4
|
@ -1,3 +1,6 @@
|
||||||
[submodule "backend/src/main/java/io/metersphere/xpack"]
|
[submodule "backend/src/main/java/io/metersphere/xpack"]
|
||||||
path = backend/src/main/java/io/metersphere/xpack
|
path = backend/src/main/java/io/metersphere/xpack
|
||||||
url = https://github.com/metersphere/xpack-backend.git
|
url = https://github.com/metersphere/xpack-backend.git
|
||||||
|
[submodule "frontend/src/business/components/xpack"]
|
||||||
|
path = frontend/src/business/components/xpack
|
||||||
|
url = https://github.com/metersphere/xpack-frontend.git
|
||||||
|
|
|
@ -34,6 +34,8 @@ import ApiReportList from "../../api/report/ApiReportList";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import ApiKeys from "../../settings/personal/ApiKeys";
|
import ApiKeys from "../../settings/personal/ApiKeys";
|
||||||
|
|
||||||
|
const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/)
|
||||||
|
|
||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
|
@ -45,6 +47,7 @@ const router = new VueRouter({
|
||||||
sidebar: RouterSidebar
|
sidebar: RouterSidebar
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
...requireContext.keys().map(key => requireContext(key).default),
|
||||||
{
|
{
|
||||||
path: "/setting",
|
path: "/setting",
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 1724662677f224fdabb8e5aacd98628739bd5ed4
|
Loading…
Reference in New Issue