From b308d074301814440382ead3c9881a1901788150 Mon Sep 17 00:00:00 2001 From: Net Date: Mon, 23 Sep 2024 12:55:18 +0700 Subject: [PATCH] refactor: header deletion branch return true When completed --- src/stores/branch/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/branch/index.ts b/src/stores/branch/index.ts index 21817527..e63f6a29 100644 --- a/src/stores/branch/index.ts +++ b/src/stores/branch/index.ts @@ -282,7 +282,7 @@ const useBranchStore = defineStore('api-branch', () => { }); if (!res) return false; - if (res.status === 200) return res.data; + if (res.status < 400) return true; return false; }