feat:优化页面代码及版本升级报错处理

branch_202502110906
朱群锋 2025-02-12 15:03:31 +08:00
parent 514f21334a
commit 134d10fa75
5 changed files with 26 additions and 67 deletions

1
env.d.ts vendored
View File

@ -10,7 +10,6 @@ declare interface ImportMetaEnv {
readonly VITE_BASE_API: string
readonly VITE_EDITOR_URL: string
}
declare interface ImportMeta {
readonly env: ImpoertMetaEnv
}

View File

@ -1,4 +1,3 @@
<script setup lang="ts">
defineProps({
data: {

View File

@ -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',

View File

@ -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')
}
]
}
]

View File

@ -8,4 +8,5 @@ export default {
info: {},
authorities: [],
},
visitedViews:[]
}