fix(embed): fallback i18n when host app has no vue-i18n plugin

This commit is contained in:
2026-02-24 23:29:48 +08:00
parent d97ec0df4d
commit 745204f2f4
7 changed files with 47 additions and 18 deletions

View File

@@ -84,11 +84,11 @@ import shikigami from "../data/Shikigami.json"
import ShikigamiSelect from "@/components/flow/nodes/yys/ShikigamiSelect.vue";
import ShikigamiProperty from "@/components/flow/nodes/yys/ShikigamiProperty.vue";
import _ from "lodash";
import {useI18n} from "vue-i18n";
import { useSafeI18n } from '@/ts/useSafeI18n';
import draggable from 'vuedraggable';
const {t} = useI18n()
const { t } = useSafeI18n()
const props = defineProps<{
groups: any[];
@@ -264,4 +264,4 @@ const getYuhunPropertyNames = (yuhun) => {
display: block;
cursor: pointer;
}
</style>
</style>