code: remove ready page

This commit is contained in:
ShawnPhang 2023-07-25 17:02:03 +08:00
parent 0af432a8d0
commit 96b8a27e6e
3 changed files with 33 additions and 48 deletions

View File

@ -15,16 +15,16 @@
min-width: 1170px; min-width: 1170px;
} }
} }
.fade-enter-active { // .fade-enter-active {
transition: opacity 0.3s; // transition: opacity 0.3s;
} // }
.fade-leave-active { // .fade-leave-active {
transition: opacity 0.3s; // transition: opacity 0.3s;
} // }
.fade-enter { // .fade-enter {
opacity: 0; // opacity: 0;
} // }
.fade-leave-to { // .fade-leave-to {
opacity: 0; // opacity: 0;
} // }
</style> </style>

View File

@ -1,23 +1,34 @@
/* /*
* @Author: ShawnPhang * @Author: ShawnPhang
* @Date: 2021-08-19 18:43:22 * @Date: 2021-08-19 18:43:22
* @Description: * @Description:
* @LastEditors: ShawnPhang <site: book.palxp.com> * @LastEditors: ShawnPhang <site: book.palxp.com>
* @LastEditTime: 2023-07-17 14:28:41 * @LastEditTime: 2023-07-25 17:00:52
*/ */
export default [ export default [
// {
// path: '/',
// name: 'main',
// redirect: 'home',
// component: () => import('@/views/Ready.vue'),
// children: [
// {
// name: 'Home',
// path: '/home',
// component: () => import(/* webpackChunkName: 'base' */ '@/views/Index.vue'),
// },
// ],
// },
{ {
// 预留主页
path: '/', path: '/',
name: 'main', name: 'main',
redirect: 'home', redirect: 'home',
component: () => import('@/views/Ready.vue'),
children: [
{
name: 'Home',
path: '/home',
component: () => import(/* webpackChunkName: 'base' */ '@/views/Index.vue'),
}, },
], {
path: '/home',
name: 'Home',
component: () => import(/* webpackChunkName: 'base' */ '@/views/Index.vue'),
}, },
{ {
path: '/draw', path: '/draw',

View File

@ -1,26 +0,0 @@
<!--
* @Author: ShawnPhang
* @Date: 2021-07-13 02:48:38
* @Description: 可用于放置一些权限校验逻辑不通过时阻止router-view渲染
* @LastEditors: ShawnPhang <site: book.palxp.com>
* @LastEditTime: 2023-07-17 14:29:24
-->
<template>
<router-view />
</template>
<script lang="ts">
import { onMounted, nextTick, getCurrentInstance, ComponentInternalInstance, defineComponent } from 'vue'
export default defineComponent({
setup() {
onMounted(() => {
// const { proxy } = getCurrentInstance() as ComponentInternalInstance
// console.log(proxy?.$utils.isIOS())
})
},
async created() {
await nextTick()
// console.log('Vue3 Setup ', this)
},
})
</script>