modify: 多worker模式插件扩缩容问题
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
* 管理端点(重启)仅超级管理员可调用,故所有请求需携带管理员的 Bearer token。
|
||||
* 未列入自动生成 SDK(openapi 之后可重新 gen 合并),此处用原生 fetch 保持轻量。
|
||||
*/
|
||||
const API_BASE: string = (import.meta.env.VITE_API_BASE_URL as string) || ''
|
||||
// 去掉尾斜杠,避免与以 '/' 开头的 path 拼接成 '//host...'(协议相对 URL 导致 ERR_NAME_NOT_RESOLVED)
|
||||
const API_BASE: string = ((import.meta.env.VITE_API_BASE_URL as string) || '').replace(/\/+$/, '')
|
||||
|
||||
export interface WorkerInstance {
|
||||
worker_type: string
|
||||
|
||||
Reference in New Issue
Block a user