Standardize store exports to named useXxxStore convention
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user