mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit:升级到vue3,更新最近工作流技术栈,支持sa-token
This commit is contained in:
26
OrangeFormsOpen-VUE3/src/App.vue
Normal file
26
OrangeFormsOpen-VUE3/src/App.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
import { useRoute } from 'vue-router';
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
|
||||
import { useWindowResize } from '@/common/hooks/useWindowResize';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
watch(
|
||||
() => route.name,
|
||||
() => {
|
||||
//console.log('路由发生了变化', route.name, route.fullPath, route.path, route);
|
||||
document.title = import.meta.env.VITE_PROJECT_NAME;
|
||||
if (route.meta && route.meta.title) {
|
||||
document.title += ' - ' + route.meta.title;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
useWindowResize();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-config-provider :locale="zhCn">
|
||||
<router-view></router-view>
|
||||
</el-config-provider>
|
||||
</template>
|
||||
Reference in New Issue
Block a user