feat:优化页面代码及版本升级报错处理
parent
514f21334a
commit
134d10fa75
|
|
@ -10,7 +10,6 @@ declare interface ImportMetaEnv {
|
|||
readonly VITE_BASE_API: string
|
||||
readonly VITE_EDITOR_URL: string
|
||||
}
|
||||
|
||||
declare interface ImportMeta {
|
||||
readonly env: ImpoertMetaEnv
|
||||
}
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
defineProps({
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@ import globalProperties from './utils/globalProperties'
|
|||
import hasPermission from './utils/hasPermission'
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(globalProperties)
|
||||
app.use(router)
|
||||
app.use(router).use(globalProperties)
|
||||
app.use(ElementPlus,{
|
||||
locale: zhCn,
|
||||
size: 'default',
|
||||
|
|
|
|||
|
|
@ -1,39 +0,0 @@
|
|||
export default [
|
||||
{
|
||||
path: '/',
|
||||
redirect: 'login',
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
meta: {title: "登录"},
|
||||
component: () => import("@/views/common/Login.vue"),
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
name: '404',
|
||||
meta: {title: "404"},
|
||||
component: () => import('@/views/common/404.vue')
|
||||
},
|
||||
{
|
||||
path: '/500',
|
||||
name: '500',
|
||||
meta: {title: "500"},
|
||||
component: () => import('@/views/common/500.vue')
|
||||
},
|
||||
{
|
||||
path: '/index',
|
||||
name: 'index',
|
||||
meta: { title: "首页" },
|
||||
redirect: '/index/home',
|
||||
component: () => import("@/components/layout/Index.vue"),
|
||||
children: [
|
||||
{
|
||||
path: 'home',
|
||||
name: 'Home',
|
||||
meta: { title: "首页" },
|
||||
component: () => import('@/views/home/Home.vue')
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -8,4 +8,5 @@ export default {
|
|||
info: {},
|
||||
authorities: [],
|
||||
},
|
||||
visitedViews:[]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue