feat: 接口统一优化
This commit is contained in:
@@ -17,9 +17,9 @@ import { useAuthStore } from "@/stores/auth";
|
||||
const colorMode = useColorMode();
|
||||
const isDark = computed(() => colorMode.value === "dark");
|
||||
|
||||
function toggleColorMode() {
|
||||
const toggleColorMode = () => {
|
||||
colorMode.value = isDark.value ? "light" : "dark";
|
||||
}
|
||||
};
|
||||
|
||||
const authStore = useAuthStore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user