mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-14 19:45:08 +08:00
Full-stack AI assistant built on Spring AI Alibaba. Features: ReAct Agent, Plan-and-Execute, MCP Protocol, Multi-Model, Multi-Channel. Apache-2.0 License
19 lines
544 B
Vue
19 lines
544 B
Vue
<template>
|
|
<el-config-provider :locale="elementLocale">
|
|
<router-view />
|
|
</el-config-provider>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import en from 'element-plus/es/locale/lang/en'
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
import { currentLocale } from '@/i18n'
|
|
import { useThemeStore } from '@/stores/useThemeStore'
|
|
|
|
// Initialize theme — applies .dark class to <html> immediately
|
|
useThemeStore()
|
|
|
|
const elementLocale = computed(() => (currentLocale.value === 'en-US' ? en : zhCn))
|
|
</script>
|