mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
新建命令正则匹配功能改为直接导入命令
This commit is contained in:
@@ -1,63 +1,60 @@
|
||||
const routes = [{
|
||||
path: '/configuration',
|
||||
name: 'configuration',
|
||||
component: () =>
|
||||
import ('pages/ConfigurationPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/code',
|
||||
name: 'code',
|
||||
component: () =>
|
||||
import ('pages/RunCodePage.vue')
|
||||
},
|
||||
{
|
||||
path: '/newcommand',
|
||||
name: 'newcommand',
|
||||
component: () =>
|
||||
import ('pages/ConfigurationPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/:type(default|files|img|key|regex|over|window|professional)_:uid(\\w+)',
|
||||
name: 'command',
|
||||
component: () =>
|
||||
import ('pages/CommandPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/panel_:tags(\\w+)',
|
||||
name: 'panel',
|
||||
component: () =>
|
||||
import ('pages/ConfigurationPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/needupdate',
|
||||
name: 'needupdate',
|
||||
props: true,
|
||||
component: () =>
|
||||
import ('pages/updateWarningPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'loading',
|
||||
component: () =>
|
||||
import ('pages/LoadingPage.vue')
|
||||
}, {
|
||||
path: '/share',
|
||||
name: 'share',
|
||||
component: () =>
|
||||
import ('pages/ShareCenterPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/feature_:featuretype(\\w+)',
|
||||
name: 'feature',
|
||||
component: () =>
|
||||
import ('pages/FeaturesPage.vue')
|
||||
},
|
||||
{
|
||||
path: '/server',
|
||||
name: 'server',
|
||||
component: () =>
|
||||
import ('pages/ServerPage.vue')
|
||||
}
|
||||
]
|
||||
const routes = [
|
||||
{
|
||||
path: "/configuration",
|
||||
name: "configuration",
|
||||
component: () => import("pages/ConfigurationPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/code",
|
||||
name: "code",
|
||||
component: () => import("pages/RunCodePage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/newcommand",
|
||||
name: "newcommand",
|
||||
component: () => import("pages/ConfigurationPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/importcommand",
|
||||
name: "importcommand",
|
||||
component: () => import("pages/ConfigurationPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:type(default|files|img|key|regex|over|window|professional)_:uid(\\w+)",
|
||||
name: "command",
|
||||
component: () => import("pages/CommandPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/panel_:tags(\\w+)",
|
||||
name: "panel",
|
||||
component: () => import("pages/ConfigurationPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/needupdate",
|
||||
name: "needupdate",
|
||||
props: true,
|
||||
component: () => import("pages/updateWarningPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
name: "loading",
|
||||
component: () => import("pages/LoadingPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/share",
|
||||
name: "share",
|
||||
component: () => import("pages/ShareCenterPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/feature_:featuretype(\\w+)",
|
||||
name: "feature",
|
||||
component: () => import("pages/FeaturesPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/server",
|
||||
name: "server",
|
||||
component: () => import("pages/ServerPage.vue"),
|
||||
},
|
||||
];
|
||||
|
||||
export default routes
|
||||
export default routes;
|
||||
|
Reference in New Issue
Block a user