feat:修复 version 被删掉的问题
This commit is contained in:
parent
5c9d2c8d36
commit
665c9e6049
|
|
@ -244,10 +244,10 @@ class StringUtils {
|
|||
return 'General';
|
||||
}
|
||||
|
||||
/// 清理路径,移除版本前缀
|
||||
/// 清理路径,保留版本前缀
|
||||
static String cleanPath(String path) {
|
||||
// 移除版本前缀
|
||||
return path.replaceFirst(RegExp(r'^/api/v\d+'), '');
|
||||
// 保留版本前缀,只清理其他不必要的字符
|
||||
return path;
|
||||
}
|
||||
|
||||
/// 格式化字节大小
|
||||
|
|
|
|||
Loading…
Reference in New Issue