更新任务

This commit is contained in:
jimmy committed 2025-01-18 22:13:48 +08:00
1 parent 2fe64b8f26
commit a4602ef13c
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -58,8 +58,10 @@ export class FileUtils {
* @param n
*/
static getRoleFolderName (url: string,n:number): string {
console.log(url);
url = url.replace(/\\/g, '/')
const segments = url.split('/')
console.log(segments);
if (n > 0) {
return segments.slice(0, n).join('/');
} else if (n < 0) {
+1 -1
View File
@@ -7,5 +7,5 @@ export default defineConfig({
...shared,
locales: {
root: { label: '简体中文', ...zh },
}
},
})