test02/node_modules/@vuepress/plugin-theme-data/lib/client/composables/useThemeData.js
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

10 lines
347 B
JavaScript

import { themeData as themeDataRaw } from '@internal/themeData';
import { ref } from 'vue';
export const themeData = ref(themeDataRaw);
export const useThemeData = () => themeData;
if (__VUEPRESS_DEV__ && (import.meta.webpackHot || import.meta.hot)) {
__VUE_HMR_RUNTIME__.updateThemeData = (data) => {
themeData.value = data;
};
}