File tree Expand file tree Collapse file tree
template/lowcode-designer/src/composable/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ export default defineService({
5757 mock = new AxiosMockAdapter ( http ) ;
5858 mock . onGet ( / \/ m o c k \/ b u n d l e \. j s o n $ / ) . passThrough ( ) ;
5959 mock . onPost ( / \/ a p p - c e n t e r \/ a p i \/ a i \/ c h a t / ) . passThrough ( ) ;
60+ // 允许 tiny-pro 的接口通过,不被 mock 拦截
61+ mock . onAny ( / \/ a p i \/ a u t h \/ a p i - t o k e n / ) . passThrough ( ) ;
62+ mock . onAny ( / \/ a p i \/ i 1 8 n / ) . passThrough ( ) ;
63+ mock . onAny ( / \/ a p i \/ m e n u / ) . passThrough ( ) ;
64+ mock . onAny ( / \/ a p i \/ r o l e / ) . passThrough ( ) ;
65+ mock . onAny ( / \/ a p i \/ r o l e \/ d e t a i l / ) . passThrough ( ) ;
6066
6167 http . interceptors . request . use ( ( config ) => {
6268 const AI_PATH = '/app-center/api/ai/chat' ;
@@ -164,6 +170,8 @@ export default defineService({
164170 mock = new AxiosMockAdapter ( http ) ;
165171 mock . onGet ( / \/ m o c k \/ b u n d l e \. j s o n $ / ) . passThrough ( ) ;
166172 mock . onPost ( / \/ a p p - c e n t e r \/ a p i \/ a i \/ c h a t / ) . passThrough ( ) ;
173+ // 允许 /api/auth/api-token 接口通过,不被 mock 拦截
174+ mock . onAny ( / \/ a p i \/ a u t h \/ a p i - t o k e n / ) . passThrough ( ) ;
167175
168176 http . interceptors . request . use ( ( config ) => {
169177 const AI_PATH = '/app-center/api/ai/chat' ;
You can’t perform that action at this time.
0 commit comments