新增SPC Vue控制图项目
This commit is contained in:
22
spc-vue/src/router.ts
Normal file
22
spc-vue/src/router.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import OverviewView from "./views/OverviewView.vue";
|
||||
import XBarRView from "./views/XBarRView.vue";
|
||||
import RChartView from "./views/RChartView.vue";
|
||||
import XBarSView from "./views/XBarSView.vue";
|
||||
import SChartView from "./views/SChartView.vue";
|
||||
import CpkView from "./views/CpkView.vue";
|
||||
|
||||
export const routes = [
|
||||
{ path: "/", redirect: "/overview" },
|
||||
{ path: "/overview", component: OverviewView, meta: { title: "总览" } },
|
||||
{ path: "/xbar-r", component: XBarRView, meta: { title: "Xbar-R" } },
|
||||
{ path: "/r-chart", component: RChartView, meta: { title: "R 图" } },
|
||||
{ path: "/xbar-s", component: XBarSView, meta: { title: "Xbar-S" } },
|
||||
{ path: "/s-chart", component: SChartView, meta: { title: "S 图" } },
|
||||
{ path: "/cpk", component: CpkView, meta: { title: "Cpk" } }
|
||||
];
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes
|
||||
});
|
||||
Reference in New Issue
Block a user