update 优化地图工具方法,调整地图样式
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { nextTick, onMounted, ref } from 'vue';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
|
||||
export function useTheme() {
|
||||
const themeType = ref('light');
|
||||
onMounted(() => {
|
||||
const store = useUserStore();
|
||||
nextTick(() => {
|
||||
themeType.value = store.getThemeType;
|
||||
});
|
||||
});
|
||||
return {
|
||||
themeType,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user