refactor(frontend): 统一 Element 语言注入并抽出全站皮肤
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a10ecc8073
commit
81d82a88d5
28 files changed
+144
-240
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* features/admin/modules/linked-services/LinkedServicesPage.vue
|
||||
* 用途:关联服务列表。一张卡片里放标题、新增按钮和表格。
|
||||
* 依赖:AdminListPage、useLinkedServicesAdmin、useElementProvider、element-plus、关联服务表单对话框。
|
||||
* 依赖:AdminListPage、useLinkedServicesAdmin、element-plus、关联服务表单对话框。
|
||||
* 逻辑:路由 /admin/linked-services。启用项会出现在对话和工作台侧栏。删除用 Element 确认框。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
@@ -10,7 +10,6 @@ import { useI18n } from 'vue-i18n';
|
||||
import { Plus } from '@element-plus/icons-vue';
|
||||
import {
|
||||
ElButton,
|
||||
ElConfigProvider,
|
||||
ElSwitch,
|
||||
ElTable,
|
||||
ElTableColumn,
|
||||
@@ -19,13 +18,11 @@ import 'element-plus/dist/index.css';
|
||||
import 'element-plus/theme-chalk/dark/css-vars.css';
|
||||
import '@/features/admin/styles/element-trial.css';
|
||||
import AdminListPage from '@/features/admin/components/AdminListPage.vue';
|
||||
import { useElementProvider } from '@/features/admin/composables/useElementProvider';
|
||||
import type { AdminLinkedServiceRow } from '@/features/admin/types/linked-service.types';
|
||||
import LinkedServiceFormModal from './components/LinkedServiceFormModal.vue';
|
||||
import { useLinkedServicesAdmin } from './composables/useLinkedServicesAdmin';
|
||||
|
||||
const { t } = useI18n();
|
||||
const { elementLocale } = useElementProvider();
|
||||
|
||||
const {
|
||||
services,
|
||||
@@ -56,7 +53,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ElConfigProvider :locale="elementLocale">
|
||||
<AdminListPage :loading="isLoading">
|
||||
<template #title>
|
||||
<h2 class="section-title">{{ t('admin.linkedServices.title') }}</h2>
|
||||
@@ -110,7 +106,6 @@ onMounted(() => {
|
||||
@close="closeFormModal"
|
||||
@save="saveService"
|
||||
/>
|
||||
</ElConfigProvider>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in new issue
Block a user