File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,7 +273,8 @@ export class ArtModelService {
273273 filepath = `${ mountDir } /${ path } ` ;
274274 } else {
275275 // 直接拼接uri和path
276- const normalizedUri = uri . endsWith ( '/' ) ? uri . slice ( 0 , - 1 ) : uri ;
276+ let normalizedUri = uri . endsWith ( '/' ) ? uri . slice ( 0 , - 1 ) : uri ;
277+ normalizedUri = normalizedUri . replace ( / ^ ( n a s | o s s | f i l e ) : \/ \/ / , '/' ) ;
277278 filepath = `${ normalizedUri } /${ path } ` ;
278279 }
279280
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export class Model {
7878 const modelConfig = annotations ?. modelConfig ;
7979
8080 try {
81- if ( modelConfig . solution === 'funArt' ) {
81+ if ( modelConfig . solution === 'funArt' || modelConfig . solution === 'funModel' ) {
8282 const modelArtService = await this . getModelArtService ( ) ;
8383 await modelArtService . removeModel ( this . name , params ) ;
8484 } else {
You can’t perform that action at this time.
0 commit comments