29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
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";
|
|
import RunChartView from "./views/RunChartView.vue";
|
|
import HistogramView from "./views/HistogramView.vue";
|
|
import NormalCurveView from "./views/NormalCurveView.vue";
|
|
|
|
export const routes = [
|
|
{ path: "/", redirect: "/overview" },
|
|
{ path: "/overview", component: OverviewView, meta: { title: "总览" } },
|
|
{ path: "/run-chart", component: RunChartView, meta: { title: "趋势图" } },
|
|
{ path: "/histogram", component: HistogramView, meta: { title: "直方图" } },
|
|
{ path: "/normal-curve", component: NormalCurveView, 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
|
|
});
|