添加空页面

This commit is contained in:
fofolee 2022-04-09 01:20:44 +08:00
parent 0ca153ac10
commit 431906a1bb
3 changed files with 36 additions and 15 deletions

View File

@ -32,17 +32,23 @@ export default defineComponent({
}
//
this.setCssVar("primary", this.$profile.primaryColor);
//
utools.onPluginEnter((enter) => {
//
this.$q.dark.set(utools.isDarkColors());
//
quickcommand.enterData = enter;
this.$router.push({
path: enter.code,
query: {
timestamp: new Date().getTime(),
},
});
this.$router.push(enter.code);
});
// 退
utools.onPluginOut(() => {
//
this.$router.push("loading");
//
this.$utools.putDB(
_.cloneDeep(this.$profile),
this.$utools.DBPRE.CFG + "preferences"
);
});
},
},

View File

@ -0,0 +1,5 @@
<template>
<div>
<!-- loading... -->
</div>
</template>

View File

@ -1,29 +1,39 @@
const routes = [
{
const routes = [{
path: '/configuration',
component: () => import('pages/ConfigurationPage.vue')
component: () =>
import ('pages/ConfigurationPage.vue')
},
{
path: '/code',
component: () => import('pages/RunCodePage.vue')
component: () =>
import ('pages/RunCodePage.vue')
},
{
path: '/newcommand',
component: () => import('pages/NewCommand.vue')
component: () =>
import ('pages/NewCommand.vue')
},
{
path: '/:type(default|files|key|regex|window|professional)_:uid(\\w+)',
component: () => import('pages/CommandPage.vue')
component: () =>
import ('pages/CommandPage.vue')
},
{
path: '/panel_:tags(\\w+)',
component: () => import('pages/ConfigurationPage.vue')
component: () =>
import ('pages/ConfigurationPage.vue')
},
{
path: '/needupdate',
name: 'needupdate',
props: true,
component: () => import('pages/updateWarningPage.vue')
component: () =>
import ('pages/updateWarningPage.vue')
},
{
path: '/loading',
component: () =>
import ('pages/LoadingPage.vue')
}
]