qlin 3223a20600
Feat use layout (#223)
* style: format code

* feat: 添加 useLayout 暴露 closeTab 的能力
2023-12-18 20:22:31 +08:00

13 lines
274 B
JavaScript

import { createSharedComposable } from '@vueuse/core';
import { shallowReactive } from 'vue';
function _useLayout() {
const state = shallowReactive({
closeTab: () => {},
});
return state;
}
export const useLayout = createSharedComposable(_useLayout);