更新任务
This commit is contained in:
1 parent
2fe64b8f26
commit
a4602ef13c
2 files changed
+3
-1
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -7,5 +7,5 @@ export default defineConfig({
|
||||
...shared,
|
||||
locales: {
|
||||
root: { label: '简体中文', ...zh },
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user