From 69e7878ee1776e49d6b5db1cf36ff41c6766b0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Thu, 18 Jul 2024 16:25:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=90=8E=E5=8F=B0=E5=85=A5=E5=8F=A3=E5=90=8E=20WEB=20?= =?UTF-8?q?=E7=BB=88=E7=AB=AF=E5=91=BD=E4=BB=A4=E6=89=A7=E8=A1=8C=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/common.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/api/common.ts b/web/src/api/common.ts index a0f9169e..aa1548fe 100644 --- a/web/src/api/common.ts +++ b/web/src/api/common.ts @@ -9,6 +9,7 @@ import { state as uploadExpandState, fileUpload as uploadExpand } from '/@/compo import type { AxiosRequestConfig } from 'axios' import { uuid } from '/@/utils/random' import { i18n } from '../lang' +import { adminBaseRoutePath } from '/@/router/static/adminBase' /* * 公共请求函数和Url定义 @@ -16,13 +17,13 @@ import { i18n } from '../lang' // Admin模块 export const adminUploadUrl = '/admin/ajax/upload' -export const adminBuildSuffixSvgUrl = '/admin/ajax/buildSuffixSvg' +export const adminBuildSuffixSvgUrl = adminBaseRoutePath + '/ajax/buildSuffixSvg' export const adminAreaUrl = '/admin/ajax/area' export const getTablePkUrl = '/admin/ajax/getTablePk' export const getTableListUrl = '/admin/ajax/getTableList' export const getTableFieldListUrl = '/admin/ajax/getTableFieldList' export const getDatabaseConnectionListUrl = '/admin/ajax/getDatabaseConnectionList' -export const terminalUrl = '/admin/ajax/terminal' +export const terminalUrl = adminBaseRoutePath + '/ajax/terminal' export const changeTerminalConfigUrl = '/admin/ajax/changeTerminalConfig' export const clearCacheUrl = '/admin/ajax/clearCache'