commit:升级到vue3,更新最近工作流技术栈,支持sa-token

This commit is contained in:
Jerry
2024-07-05 22:42:33 +08:00
parent bbcc608584
commit 565ecb6371
1751 changed files with 236790 additions and 0 deletions

View 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>