mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 18:10:30 +08:00
feat(i8-i9): webhook DEAD replay, read-only delivery status, and callback UI
I8: platform proxies replay to webhook; webhook ops token filter and internal replay endpoint; delivery service supports read/replay flows. I9: platform GET callback webhook delivery status by inbox id; UI shows read-only status block and handles load errors without blocking the page. Also refresh OpenAPI, Runbook notes, test fixtures and YAML; fix Vite dev axios baseURL so /api uses proxy; improve login error messaging. Made-with: Cursor
This commit is contained in:
@@ -7,10 +7,11 @@ import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import { useAuthStore } from "./stores/auth";
|
||||
|
||||
const apiBase =
|
||||
// 开发环境始终使用相对路径,以便 Vite 将 /api 代理到后端;误设 VITE_API_BASE 时否则会直连并常出现跨域或连错环境。
|
||||
const apiBaseRaw =
|
||||
typeof import.meta.env.VITE_API_BASE === "string" ? import.meta.env.VITE_API_BASE.trim() : "";
|
||||
if (apiBase) {
|
||||
axios.defaults.baseURL = apiBase.replace(/\/+$/, "");
|
||||
if (!import.meta.env.DEV && apiBaseRaw) {
|
||||
axios.defaults.baseURL = apiBaseRaw.replace(/\/+$/, "");
|
||||
}
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
Reference in New Issue
Block a user