Refactor RandomPicker.vue for improved readability and maintainability. Enhance template formatting by standardizing indentation and spacing, and update button properties for consistency. Add a new button for navigating to the list page in index.vue, and adjust date handling in settings and index pages for better date management. Update dataProvider and settings utility functions for improved response handling and configuration management.

This commit is contained in:
SunWuyuan
2025-05-11 16:23:41 +08:00
parent 3654e22fef
commit be3ffb945c
8 changed files with 1060 additions and 124 deletions
+1 -5
View File
@@ -1,11 +1,7 @@
import { kvProvider } from "./providers/kvProvider";
import { getSetting } from "./settings";
export const formatResponse = (data, message = null) => ({
success: true,
data,
message,
});
export const formatResponse = (data, message = null) => (data);
export const formatError = (message, code = "UNKNOWN_ERROR") => ({
success: false,