🐛(component): 恢复 provider 组件

This commit is contained in:
就眠儀式
2022-07-19 09:52:13 +08:00
parent f7ebab3b9c
commit 80a793d151
3 changed files with 4 additions and 9 deletions

View File

@@ -15,7 +15,6 @@ import {
auto as followSystemColorScheme,
setFetchMethod,
} from "@umijs/ssr-darkreader";
import { v4 as uuidv4 } from "../utils/guidUtil";
export interface LayConfigProviderProps {
locale?: string;
@@ -30,8 +29,6 @@ const props = withDefaults(defineProps<LayConfigProviderProps>(), {
theme: "light",
});
const id = uuidv4();
const { locale, setLocaleMessage, mergeLocaleMessage } = useI18n();
const ignoreInlineStyle = [
@@ -133,7 +130,5 @@ watch(
</script>
<template>
<div :id="id">
<slot></slot>
</div>
</template>