Standardize store exports to named useXxxStore convention

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 13:25:00 +08:00
parent 147b16ca34
commit 90048d0505
69 changed files with 241 additions and 241 deletions

View File

@@ -1,4 +1,4 @@
import loadingStore from '@/stores/loading.js';
import { useLoadingStore } from '@/stores/loading.js';
import {useToast} from 'vue-toast-notification';
import 'vue-toast-notification/dist/theme-sugar.css';
@@ -12,7 +12,7 @@ const delay = (s = 0) => new Promise((resolve, reject) => setTimeout(resolve, s
* @param {string} toastMessage Toast 的提示文字
*/
export default async function apiError(error, toastMessage) {
const loading = loadingStore();
const loading = useLoadingStore();
const $toast = useToast();
await delay();
loading.isLoading = true;