fix: 锁屏页面重构

This commit is contained in:
TsMask
2024-01-17 16:00:55 +08:00
parent 5d1a60d94f
commit 46f0a7a92d
8 changed files with 80 additions and 41 deletions

View File

@@ -1,16 +0,0 @@
import { ref, inject, provide } from 'vue';
const INJECT_LOADING_KEY = Symbol('loading_store');
export const createLoading = (v = false) => {
const loading = ref<boolean>(v);
const change = (bool: boolean) => {
loading.value = bool;
};
provide(INJECT_LOADING_KEY, loading);
return [loading, change];
};
export const useLoading = () => {
return inject(INJECT_LOADING_KEY);
};