mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-03 03:56:41 +08:00
code: remove ready page
This commit is contained in:
parent
0af432a8d0
commit
96b8a27e6e
24
src/App.vue
24
src/App.vue
@ -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>
|
||||||
|
@ -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',
|
||||||
|
@ -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>
|
|
Loading…
x
Reference in New Issue
Block a user