From ea81b784d6c2ba947381675f495fa67a9858dc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Thu, 23 Oct 2025 15:13:58 +0800 Subject: [PATCH] 111 --- src/api/workshop.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/workshop.ts b/src/api/workshop.ts index 7342a0e..21d3470 100644 --- a/src/api/workshop.ts +++ b/src/api/workshop.ts @@ -1,9 +1,12 @@ // import request from '@/utils/request' // 测试 模拟请求 +import { useOverallStore } from '@/stores' const request = (config: any) => { return new Promise(res => { + if (!config.loading) useOverallStore().setLoading(true) setTimeout(() => { res({}) + if (!config.loading) useOverallStore().setLoading(false) }, 1000) }) }